/* ADA Desktop Assistant - Custom Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* Navbar Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Card Styles */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 2px solid var(--light-bg);
    font-weight: 600;
    padding: 15px;
}

.card-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header i {
    margin-right: 8px;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid var(--light-bg);
    background-color: white;
    border-radius: 8px 8px 0 0;
    padding: 10px 10px 0 10px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
    margin-right: 5px;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link i {
    margin-right: 6px;
}

.tab-content {
    background-color: white;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    min-height: 500px;
}

/* List Group Styles */
.list-group-item {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn i {
    margin-right: 6px;
}

/* Table Styles */
.table {
    margin-top: 15px;
}

.table thead {
    background-color: var(--light-bg);
}

.table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

/* Form Styles */
.form-select,
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Sidebar Styles */
.sidebar {
    padding-right: 15px;
}

.sidebar .card {
    position: sticky;
    top: 20px;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    border: none;
    padding: 12px 16px;
}

.alert i {
    margin-right: 8px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        margin-bottom: 20px;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .main-content {
        padding: 10px;
    }
}

/* Utility Classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow-md {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Export Tab Styles */
#clipboardTextArea {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

/* Course Details Styles */
#courseDetails h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

#courseDetails p {
    margin-bottom: 10px;
    line-height: 1.6;
}

#courseDetails strong {
    color: #333;
    font-weight: 600;
}

/* Schedule Table Styles */
#scheduleContent .table {
    background-color: white;
}

#scheduleContent .table td,
#scheduleContent .table th {
    padding: 12px;
    vertical-align: middle;
}

/* Empty State Styles */
.text-muted.text-center {
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}
