deepsite / 4th year /styles /dashboard.css
kjro's picture
Upload 10 files
c3a3a56 verified
raw
history blame
5.92 kB
body {
margin: 0;
font-family: 'Segoe UI', Arial, sans-serif;
background: #f7f8fa;
color: #222;
}
header {
background: #212b31;
color: #ffffff;
padding: 10px 0;
text-align: center;
}
h1 {
margin: 0;
}
nav {
margin: 20px 0;
}
nav a {
color: #ffffff;
text-decoration: none;
padding: 10px 15px;
}
nav a:hover {
background: #da775c;
}
.container {
width: 80%;
margin: auto;
overflow: hidden;
}
footer {
text-align: center;
padding: 20px 0;
background: #35424a;
color: #000;
position: relative;
bottom: 0;
width: 100%;
}
.cms-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px 60px 0 60px;
background: #fff;
border-bottom: 1px solid #ececec;
}
.cms-header-title {
font-size: 2rem;
font-weight: 500;
color: #000;
}
.cms-nav {
display: flex;
gap: 32px;
font-size: 1.1rem;
}
.cms-nav a {
color: #222;
text-decoration: none;
padding-bottom: 4px;
border-bottom: 2px solid transparent;
transition: border-color 0.2s;
}
.cms-nav a.active,
.cms-nav a:hover {
border-bottom: 2px solid #222;
}
.cms-user-icon {
font-size: 1.5rem;
margin-left: 24px;
}
.dashboard-container {
display: flex;
min-height: 100vh;
}
.dashboard-sidebar {
background: #fff;
width: 260px;
padding: 32px 0;
border-right: 1px solid #ececec;
display: flex;
flex-direction: column;
align-items: center;
}
.dashboard-user {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 40px;
}
.dashboard-avatar {
width: 56px;
height: 56px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 12px;
background: #ececec;
}
.dashboard-username {
font-size: 1.15rem;
font-weight: 600;
}
.dashboard-nav {
width: 100%;
display: flex;
flex-direction: column;
gap: 8px;
}
.dashboard-nav a {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 32px;
color: #222;
text-decoration: none;
font-size: 1.08rem;
border-radius: 8px 0 0 8px;
transition: background 0.2s, color 0.2s;
}
.dashboard-nav a.active,
.dashboard-nav a:hover {
background: #eaf6fa;
color: #0077b6;
}
.dashboard-nav .icon {
font-size: 1.2rem;
}
.dashboard-main {
flex: 1;
padding: 48px 48px 32px 48px;
}
.dashboard-main h1 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 32px;
}
.dashboard-section {
margin-bottom: 40px;
}
.dashboard-section h2 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 18px;
}
.dashboard-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(60,72,88,0.04);
display: flex;
align-items: center;
padding: 24px;
gap: 24px;
margin-bottom: 24px;
max-width: 1200px;
}
.dashboard-card-avatar {
width: 64px;
height: 64px;
border-radius: 50%;
object-fit: cover;
background: #ececec;
}
.dashboard-card-info {
flex: 1;
}
.dashboard-card-time {
font-size: 1rem;
color: #666;
margin-bottom: 4px;
}
.dashboard-card-title {
font-size: 1.15rem;
font-weight: 700;
margin-bottom: 2px;
}
.dashboard-card-doctor {
font-size: 1rem;
color: #444;
}
.dashboard-card-btn {
background: #0077b6;
color: #fff;
padding: 10px 22px;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
font-size: 1rem;
transition: background 0.2s;
border: none;
cursor: pointer;
}
.dashboard-card-btn:hover {
background: #005f8e;
}
.dashboard-appointments {
display: grid;
gap: 20px;
margin-top: 20px;
}
.appointment-card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.appointment-info h3 {
margin: 0 0 8px 0;
color: #0077b6;
}
.appointment-details {
color: #666;
font-size: 0.95rem;
}
.appointment-status {
padding: 6px 12px;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 500;
}
.status-scheduled {
background: #e3f2fd;
color: #0077b6;
}
.status-completed {
background: #e8f5e9;
color: #2e7d32;
}
.dashboard-table {
background: white;
border-radius: 12px;
padding: 20px;
margin-top: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #eee;
}
th {
color: #666;
font-weight: 600;
}
/* Responsive */
@media (max-width: 900px) {
.dashboard-main {
padding: 32px 12px;
}
.dashboard-sidebar {
width: 100px;
padding: 16px 0;
}
.dashboard-nav a {
padding: 10px 10px;
font-size: 0.95rem;
}
.dashboard-user {
margin-bottom: 20px;
}
.dashboard-avatar {
width: 40px;
height: 40px;
}
}
@media (max-width: 600px) {
.dashboard-container {
flex-direction: column;
}
.dashboard-sidebar {
width: 100%;
flex-direction: row;
justify-content: space-between;
align-items: center;
border-right: none;
border-bottom: 1px solid #ececec;
padding: 8px 0;
}
.dashboard-main {
padding: 16px 4px;
}
.dashboard-card, .dashboard-table {
max-width: 100%;
padding: 12px;
}
}