/* connectblue CSS - Professional Scheduling System Styles */

:root {
    --connec-primary: #3b82f6;
    --connec-primary-dark: #2563eb;
    --connec-secondary: #06b6d4;
    --connec-success: #10b981;
    --connec-warning: #f59e0b;
    --connec-danger: #ef4444;
    --connec-dark: #1f2937;
    --connec-light: #f8fafc;
    --connec-border: #e5e7eb;
    --connec-text: #374151;
    --connec-text-light: #6b7280;
    --connec-gradient: linear-gradient(135deg, var(--connec-primary) 0%, var(--connec-secondary) 100%);
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    min-height: 100vh;
    background: var(--connec-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.login-header {
    background: var(--connec-gradient);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.login-header .logo i {
    font-size: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.login-header .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.login-form {
    padding: 40px 30px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--connec-text);
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--connec-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--connec-border);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--connec-primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--connec-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.error-message {
    margin: 0 30px 20px;
    padding: 15px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.login-footer {
    background: #f8fafc;
    padding: 30px;
    border-top: 1px solid var(--connec-border);
}

.system-info {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--connec-text);
}

.info-item i {
    color: var(--connec-primary);
    width: 16px;
}

.demo-credentials {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e0f2fe;
}

.demo-credentials h4 {
    margin: 0 0 12px 0;
    color: var(--connec-primary);
    font-size: 14px;
}

.demo-credentials p {
    margin: 8px 0;
    font-size: 13px;
    color: var(--connec-text);
}

.demo-credentials small {
    color: var(--connec-text-light);
}

/* ==================== DASHBOARD BASE ==================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--connec-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--connec-border);
    background: var(--connec-gradient);
    color: white;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sidebar-header .logo i {
    font-size: 24px;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.sidebar-header .user-info {
    font-size: 13px;
    opacity: 0.9;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: var(--connec-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item i {
    width: 20px;
    text-align: center;
    color: var(--connec-text-light);
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--connec-primary);
}

.nav-item:hover i {
    color: var(--connec-primary);
}

.nav-item.active {
    background: #eff6ff;
    color: var(--connec-primary);
    border-left-color: var(--connec-primary);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--connec-primary);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: #f8fafc;
}

.page-header {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--connec-dark);
    margin: 0 0 8px 0;
}

.page-header p {
    color: var(--connec-text-light);
    font-size: 16px;
    margin: 0;
}

/* ==================== CARDS & COMPONENTS ==================== */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--connec-dark);
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--connec-primary);
}

.card-subtitle {
    color: var(--connec-text-light);
    font-size: 14px;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--connec-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--connec-text-light);
    font-size: 14px;
    font-weight: 500;
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--connec-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--connec-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--connec-text);
}

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

.btn-success {
    background: var(--connec-success);
    color: white;
}

.btn-warning {
    background: var(--connec-warning);
    color: white;
}

.btn-danger {
    background: var(--connec-danger);
    color: white;
}

/* ==================== SCHEDULE STYLES ==================== */
.schedule-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.schedule-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.schedule-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.availability-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.toggle-switch {
    width: 50px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: rgba(255, 255, 255, 0.6);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active::before {
    transform: translateX(22px);
}

.calendar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--connec-text);
    transition: all 0.2s ease;
}

.calendar-nav button:hover {
    background: var(--connec-light);
    color: var(--connec-primary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        margin: 0;
    }
    
    .schedule-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ==================== NOTIFICATION STYLES ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: var(--connec-success);
}

.notification.error {
    background: var(--connec-danger);
}

.notification.warning {
    background: var(--connec-warning);
}

.notification.info {
    background: var(--connec-primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== TABLE STYLES ==================== */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--connec-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--connec-border);
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--connec-text);
}

.table tr:hover {
    background: #f8fafc;
}

/* ==================== MODAL STYLES ==================== */
.modal {
    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: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--connec-dark);
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}
