/* ========================================
   PROFESSIONAL THEME - LinkedIn-Inspired Design
   ======================================== */

:root {
    /* Primary Colors - LinkedIn Blue */
    --primary-color: #0a66c2;
    --primary-hover: #004182;
    --primary-light: #e7f3ff;
    --primary-dark: #004182;
    
    /* Secondary Colors */
    --secondary-color: #666666;
    --secondary-hover: #000000;
    
    /* Success/Info/Warning/Danger */
    --success-color: #057642;
    --info-color: #0a66c2;
    --warning-color: #915907;
    --danger-color: #cc1016;
    
    /* Neutral Colors - LinkedIn Gray Scale */
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #00000099;
    
    /* Background Colors */
    --bg-body: #f3f2ef;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #283e4a;
    --bg-hover: #f3f2ef;
    
    /* Border Colors */
    --border-color: #00000024;
    --border-light: #0000001a;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius - Subtle */
    --radius-sm: 0.5rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 0.75rem;
    
    /* Shadows - Subtle and Professional */
    --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.12);
    
    /* Font */
    --font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Fira Sans', Ubuntu, Oxygen, 'Oxygen Sans', Cantarell, 'Droid Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lucida Grande', Helvetica, Arial, sans-serif;
}

/* Body */
body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.42857;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Cards - LinkedIn Style */
.card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: var(--spacing-lg);
    font-weight: 600;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Buttons - LinkedIn Style */
.btn {
    border-radius: 1.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: inset 0 0 0 1px transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: inset 0 0 0 2px var(--primary-hover);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    box-shadow: inset 0 0 0 2px var(--primary-color);
    color: var(--primary-hover);
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-hover);
    color: var(--primary-hover);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #045d37;
    color: white;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Forms - Professional Style */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: var(--bg-white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Navigation - LinkedIn Style */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    padding: 0.75rem 1rem;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* Tables - Clean Professional Style */
.table {
    background: var(--bg-white);
    border: none;
    font-size: 0.875rem;
}

.table thead {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.table thead th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--bg-hover);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

/* Alerts - Professional Notifications */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: #d4edda;
    color: var(--success-color);
}

.alert-info {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Badges - LinkedIn Style */
.badge {
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--text-secondary);
    color: white;
}

/* Modal - Professional Dialog */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Page Header - Professional */
.page-header {
    background: var(--bg-white);
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Profile Card - LinkedIn Style */
.profile-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-photo {
    border-radius: 50%;
    border: 2px solid var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Course Cards - LinkedIn Feed Style */
.course-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.course-card:hover {
    box-shadow: var(--shadow-md);
}

.course-card-header {
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.course-card-body {
    padding: var(--spacing-lg);
}

.course-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.course-info-item {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.course-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.course-info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact Information - Professional Card */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
}

.contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
}

.page-link:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

/* Hover Effects - Subtle LinkedIn Style */
.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Focus States - Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #1b1f23;
        --bg-white: #161619;
        --bg-light: #1d1d1d;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --border-color: #ffffff1a;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
