/* Auth Page Styles */

/* Ensure nested lists are indented */
ul, ol {
    margin-left: 2em;
    padding-left: 2em;
}
ul ul, ul ol, ol ul, ol ol {
    margin-left: 2em;
    padding-left: 2em;
}
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.auth-brand i {
    font-size: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

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

.auth-form {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--dark-text);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.link-secondary {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.link-secondary:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--secondary-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-login .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Make SSO buttons blue with white text */
.social-login .btn-outline {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: var(--shadow);
}
.social-login .btn-outline:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
}

.social-login i {
    font-size: 1.25rem;
}

.auth-back {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-back a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-back a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.dashboard-navbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.dashboard-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.dashboard-nav-brand i {
    font-size: 1.75rem;
}

.dashboard-nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.dashboard-nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s;
}

.dashboard-nav-menu a:hover {
    color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.dashboard-content {
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

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

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-card-title {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.stat-card-change {
    font-size: 0.875rem;
    color: var(--success-color);
}

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

/* API Keys */
.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.api-key-info h4 {
    margin-bottom: 0.25rem;
    color: var(--dark-text);
}

.api-key-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.api-key-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--secondary-color);
}

.stat-item i {
    font-size: 0.875rem;
}

/* Activity Indicators */
.activity-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.activity-indicator.inactive {
    background: var(--secondary-color);
    opacity: 0.3;
}

.activity-indicator.active-recent {
    background: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 0 4px var(--success-color);
    animation: pulse 2s infinite;
}

.activity-indicator.active-week {
    background: var(--warning-color);
    opacity: 0.8;
}

.activity-indicator.active-old {
    background: var(--info-color);
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.api-key-value {
    font-family: monospace;
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-key-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: color 0.3s;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

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

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Support Widget */
.support-widget-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.support-widget-button:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.5);
}

.support-widget-button:active {
    transform: scale(0.95);
}

.support-modal .modal-content {
    max-width: 600px;
}

.support-modal .form-group {
    margin-bottom: 1.5rem;
}

.support-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 500;
}

.support-modal .form-group input,
.support-modal .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.support-modal .form-group input:focus,
.support-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.support-modal .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.support-modal .form-help {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.support-modal .alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.support-modal .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.support-modal .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
