/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.sidebar-header .subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-item i {
    width: 20px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.nav-item span:first-of-type {
    flex: 1;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
}

.top-bar h1 {
    color: #1e40af;
    font-size: 1.8rem;
    font-weight: 600;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f8fafc;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
}

.user-name {
    font-weight: 600;
    color: #374151;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Content */
.content {
    padding: 2rem;
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h2 {
    color: #1e40af;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    color: #1e40af;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Status Cards */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.in-progress {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge.completed {
    background-color: #d1fae5;
    color: #059669;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge.urgent {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge {
    background-color: #ef4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #1e40af;
}

/* Next Milestone */
.next-milestone h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.date {
    font-weight: 600;
    color: #374151;
}

.time {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Pending Documents */
.pending-docs {
    list-style: none;
}

.pending-docs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

.pending-docs li:last-child {
    border-bottom: none;
}

/* Student Info */
.student-card {
    margin-bottom: 2rem;
}

.student-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #374151;
}

.value {
    color: #1e40af;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-actions h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.action-btn:hover {
    border-color: #1e40af;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.action-btn i {
    font-size: 1.5rem;
}

/* Activity List */
.activity-list {
    space-y: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-item:nth-child(1) .activity-icon {
    background-color: #d1fae5;
    color: #059669;
}

.activity-item:nth-child(2) .activity-icon {
    background-color: #dbeafe;
    color: #2563eb;
}

.activity-item:nth-child(3) .activity-icon {
    background-color: #fef3c7;
    color: #d97706;
}

.activity-content h4 {
    color: #374151;
    margin-bottom: 0.3rem;
}

.activity-content p {
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

.view-all {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* Documents Section */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: #1e40af;
    color: white;
    border-color: #1e40af;
}

.documents-list {
    space-y: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.document-item:last-child {
    border-bottom: none;
}

.doc-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-item.completed .doc-icon {
    background-color: #d1fae5;
    color: #059669;
}

.document-item.pending .doc-icon {
    background-color: #fef3c7;
    color: #d97706;
}

.document-item.urgent .doc-icon {
    background-color: #fee2e2;
    color: #dc2626;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    color: #374151;
    margin-bottom: 0.3rem;
}

.doc-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

.doc-status {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer-section p,
.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .student-details {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .doc-status {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .top-bar {
        padding: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }
}
