/* RefReady Dashboard Styles */
:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --secondary-light: #34d399;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.login-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-large);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

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

.login-header .logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.login-header .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.login-btn.loading {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    animation: spin 1s linear infinite;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-demo {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 20px;
}

.login-demo h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-demo p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.demo-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.demo-btn:hover {
    background: var(--secondary-light);
    transform: translateY(-1px);
}

.login-demo small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

.bg-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-large);
}

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.help-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.help-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Enhanced Modal Styles for Invitations */
.modal-content.wide {
    max-width: 700px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.radio-option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--primary-color);
    font-weight: 500;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
}

.radio-label {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.radio-option small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

/* Success Modal Styles */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.invitation-info {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-item:last-child {
    margin-bottom: 0;
}

.link-container {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.link-container input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.qr-code-display {
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    border: 1px solid var(--border-color);
}

.qr-instructions {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

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

.button-loading {
    display: none;
}

.btn.loading .button-text {
    display: none;
}

.btn.loading .button-loading {
    display: inline;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content.wide {
        max-width: 95%;
    }
    
    .radio-option {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

.help-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Notification Styles */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    transform: translateX(100%);
    transition: all 0.3s ease;
    opacity: 0;
}

.auth-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.auth-notification.success {
    border-left: 4px solid var(--success-color);
}

.auth-notification.error {
    border-left: 4px solid var(--danger-color);
}

.auth-notification.warning {
    border-left: 4px solid var(--warning-color);
}

.auth-notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Dashboard Common Styles */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-secondary);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-logo .logo-icon {
    font-size: 1.8rem;
}

.dashboard-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.user-info .user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-info .user-role {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.logout-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.dashboard-main {
    display: flex;
    flex: 1;
    min-height: 0;
    height: calc(100vh - 64px);
}

.dashboard-sidebar {
    width: 280px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: 0;
    flex-shrink: 0;
    overflow-y: auto;
    height: 100%;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.dashboard-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    height: 100%;
}

.nav-menu {
    list-style: none;
    padding: 24px 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-item {
    margin-bottom: 2px;
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.nav-link .nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link span:last-child {
    flex: 1;
    text-align: left;
}

/* Card Styles */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .dashboard-main {
        flex-direction: column;
        height: auto;
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 16px;
        gap: 8px;
        height: auto;
    }
    
    .nav-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .nav-link {
        padding: 12px 16px;
        white-space: nowrap;
        border-radius: var(--radius-md);
        min-width: 120px;
        justify-content: center;
    }
    
    .nav-link.active::before {
        display: none;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .dashboard-content {
        padding: 16px;
        height: auto;
        overflow-y: visible;
    }
    
    .auth-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Dashboard Specific Styles */
.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 10px;
}

.demo-banner {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-medium);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.banner-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.metric-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-change.positive {
    color: var(--success-color);
}

.metric-change.negative {
    color: var(--danger-color);
}

.metric-change.neutral {
    color: var(--text-light);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 32px;
}

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

.action-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.action-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.action-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Recent Activity */
.recent-activity {
    margin-bottom: 32px;
}

.activity-list {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
}

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

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Top Performers */
.top-performers {
    margin-bottom: 32px;
}

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

.performer-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.performer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.performer-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.performer-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.performer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.performer-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Safety Status */
.safety-status {
    margin-bottom: 32px;
}

.safety-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.safety-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.safety-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.safety-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.safety-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Dashboard Notifications */
.dashboard-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    transform: translateX(100%);
    transition: all 0.3s ease;
    opacity: 0;
}

.dashboard-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.dashboard-notification.success {
    border-left: 4px solid var(--success-color);
}

.dashboard-notification.error {
    border-left: 4px solid var(--danger-color);
}

.dashboard-notification.warning {
    border-left: 4px solid var(--warning-color);
}

.dashboard-notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    position: relative;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Referee Page Styles */
.referee-list {
    margin-top: 32px;
}

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

.list-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    width: 200px;
}

.filter-dropdown select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: white;
}

.referee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.referee-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.referee-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.referee-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.referee-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.referee-info {
    flex: 1;
}

.referee-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.referee-level {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

.referee-level.newcomer {
    background: #fef3c7;
    color: #92400e;
}

.referee-level.developing {
    background: #dbeafe;
    color: #1e40af;
}

.referee-level.experienced {
    background: #d1fae5;
    color: #065f46;
}

.referee-age {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.referee-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.referee-progress {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.referee-recent {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Mentor Page Styles */
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.mentor-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.mentor-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.mentor-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.mentor-info {
    flex: 1;
}

.mentor-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mentor-level {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

.mentor-level.senior {
    background: #f3e8ff;
    color: #7c3aed;
}

.mentor-level.club {
    background: #dbeafe;
    color: #1e40af;
}

.mentor-level.volunteer {
    background: #d1fae5;
    color: #065f46;
}

.mentor-experience {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mentor-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mentor-assignments {
    margin-bottom: 12px;
}

.mentor-assignments h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mentee-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mentee-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.mentor-activity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mentor-status {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.mentor-status.active {
    background: #d1fae5;
    color: #065f46;
}

.assignments-overview {
    margin-top: 32px;
}

.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.assignment-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

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

.assignment-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.assignment-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.assignment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assignment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.mentor-capacity {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Safety Page Styles */
.safety-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.safety-card.status-good {
    border-left: 4px solid var(--success-color);
}

.safety-card.status-attention {
    border-left: 4px solid var(--warning-color);
}

.safety-card.status-critical {
    border-left: 4px solid var(--danger-color);
}

.alerts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.alert-card:hover {
    box-shadow: var(--shadow-medium);
}

.alert-card.active {
    border-left: 4px solid var(--warning-color);
}

.alert-card.resolved {
    border-left: 4px solid var(--success-color);
}

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

.alert-priority {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.alert-priority.high {
    background: #fecaca;
    color: #991b1b;
}

.alert-priority.medium {
    background: #fef3c7;
    color: #92400e;
}

.alert-priority.low {
    background: #d1fae5;
    color: #065f46;
}

.alert-status {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.alert-status.active {
    background: #fef3c7;
    color: #92400e;
}

.alert-status.resolved {
    background: #d1fae5;
    color: #065f46;
}

.alert-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.alert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.alert-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.alert-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.alert-details span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.alert-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.alert-resolution {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.resolution-info {
    margin-bottom: 8px;
}

.resolution-label {
    font-weight: 600;
    color: var(--text-primary);
}

.resolution-text {
    color: var(--text-secondary);
}

.resolution-actions {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

.protocol-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.protocol-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.protocol-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.protocol-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.protocol-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.status-indicator.current {
    background: #d1fae5;
    color: #065f46;
}

.last-updated {
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .dashboard-content {
        padding: 12px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .performers-grid {
        grid-template-columns: 1fr;
    }
    
    .referee-grid {
        grid-template-columns: 1fr;
    }
    
    .mentor-grid {
        grid-template-columns: 1fr;
    }
    
    .list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-controls {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .alert-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .safety-card {
        flex-direction: column;
        text-align: center;
    }
    
    .safety-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .dashboard-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Table Layouts */
.referee-table-container,
.mentor-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    margin-top: 20px;
}

.referee-table,
.mentor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.referee-table th,
.mentor-table th {
    background: #f9fafb;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.referee-table td,
.mentor-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.referee-row:hover,
.mentor-row:hover {
    background: #f9fafb;
}

.referee-info,
.mentor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referee-info .referee-avatar,
.mentor-info .mentor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.referee-details,
.mentor-details {
    display: flex;
    flex-direction: column;
}

.referee-details .referee-name,
.mentor-details .mentor-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.referee-details .referee-age,
.mentor-details .mentor-status {
    font-size: 12px;
    color: #6b7280;
}

.level-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.level-badge.newcomer {
    background-color: #dbeafe;
    color: #1e40af;
}

.level-badge.developing {
    background-color: #fef3c7;
    color: #92400e;
}

.level-badge.experienced {
    background-color: #d1fae5;
    color: #065f46;
}

.level-badge.senior {
    background-color: #f3e8ff;
    color: #6b46c1;
}

.level-badge.club {
    background-color: #fed7d7;
    color: #c53030;
}

.level-badge.volunteer {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.mentee-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mentee-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.actions {
    text-align: center;
    white-space: nowrap;
}

/* Enhanced Search and Filter Controls */
.list-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-dropdown select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Additional Responsive Styles for Tables */
@media (max-width: 768px) {
    .referee-table-container,
    .mentor-table-container {
        font-size: 12px;
    }
    
    .referee-table th,
    .mentor-table th,
    .referee-table td,
    .mentor-table td {
        padding: 8px 6px;
    }
    
    .referee-info .referee-avatar,
    .mentor-info .mentor-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .list-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .mentee-tags {
        flex-direction: column;
    }
    
    .mentee-tag {
        width: fit-content;
    }
}

/* Settings Page Styles */
.settings-nav {
    margin-bottom: 24px;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.settings-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

.settings-tab.active {
    background: #3b82f6;
    color: white;
}

.tab-icon {
    font-size: 16px;
}

.settings-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-height: 600px;
}

.settings-panel {
    display: none;
    padding: 24px;
}

.settings-panel.active {
    display: block;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.settings-card {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.card-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* User Management Styles */
.settings-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.users-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table th,
.users-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.users-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.user-row:hover {
    background: #f9fafb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: #6b7280;
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.admin {
    background-color: #fef3c7;
    color: #92400e;
}

.role-badge.mentor {
    background-color: #dbeafe;
    color: #1e40af;
}

.role-badge.coordinator {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.inactive {
    background-color: #fed7d7;
    color: #c53030;
}

/* Notification Settings */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Toggle Switches */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-slider {
    width: 48px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #3b82f6;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Integration Styles */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.integration-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.integration-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.integration-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.integration-info {
    flex: 1;
}

.integration-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.integration-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.integration-status {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.integration-status.connected {
    background: #d1fae5;
    color: #065f46;
}

.integration-status.disconnected {
    background: #fed7d7;
    color: #c53030;
}

.integration-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Subscription Styles */
.subscription-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.subscription-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.subscription-card.current {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

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

.subscription-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.plan-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.plan-features li {
    padding: 4px 0;
    color: #374151;
    font-size: 14px;
}

.billing-info {
    margin-bottom: 20px;
}

.billing-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #6b7280;
}

.subscription-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.usage-stats {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.usage-stats h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.usage-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

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

.usage-text {
    font-size: 12px;
    color: #6b7280;
}

/* Settings Footer */
.settings-footer {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.audit-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.audit-stats .stat-item {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-overview {
        grid-template-columns: 1fr;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .footer-actions {
        flex-direction: column;
    }
    
    .integration-actions {
        flex-direction: column;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .audit-stats {
        flex-direction: column;
        gap: 8px;
    }
} 