/* Root CSS Variables for Theming */
:root {
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition-speed: 0.3s;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #222222;
    --bg-card-hover: #2a2a2a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --accent-primary: #00ccff;
    --accent-hover: #00b8e6;
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --error-color: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --border-color: #e0e0e0;
    --accent-primary: #0099cc;
    --accent-hover: #007aa3;
    --success-color: #059669;
    --success-bg: rgba(5, 150, 105, 0.08);
    --error-color: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background-color: var(--bg-card);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

/* Header */
.site-header {
    text-align: center;
    margin-bottom: 48px;
}

.site-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn svg {
    flex-shrink: 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-primary);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.hidden {
    display: none;
}

/* Domains List */
.domains-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.domain-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.domain-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Active Domain (Green) */
.domain-active {
    border-color: var(--success-color);
    background-color: var(--success-bg);
}

.domain-active:hover {
    background-color: var(--success-bg);
    filter: brightness(1.05);
}

.domain-active .status-icon {
    color: var(--success-color);
}

/* Expired Domain (Red) */
.domain-expired {
    border-color: var(--error-color);
    background-color: var(--error-bg);
}

.domain-expired:hover {
    background-color: var(--error-bg);
    filter: brightness(1.05);
}

.domain-expired .status-icon {
    color: var(--error-color);
}

/* Domain Status Icon */
.domain-status {
    flex-shrink: 0;
    padding-top: 2px;
}

.status-icon {
    width: 24px;
    height: 24px;
}

/* Domain Content */
.domain-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.domain-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    word-break: break-all;
    transition: color 0.2s ease;
}

.domain-url:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.domain-url svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.domain-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.domain-date::before {
    content: '📅';
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.info-link {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    background-color: var(--bg-card);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.info-link:hover {
    color: var(--accent-primary);
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 60px 16px 80px;
    }

    .site-header h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .theme-switcher {
        top: 12px;
        right: 12px;
        padding: 6px;
        gap: 6px;
    }

    .theme-btn {
        padding: 6px;
    }

    .theme-btn svg {
        width: 18px;
        height: 18px;
    }

    .domain-card {
        padding: 16px;
        gap: 12px;
    }

    .status-icon {
        width: 20px;
        height: 20px;
    }

    .domain-url {
        font-size: 0.95rem;
    }

    .site-footer {
        bottom: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.875rem;
    }

    .theme-switcher {
        top: 8px;
        right: 8px;
    }

    .site-footer {
        position: static;
        text-align: center;
        padding: 20px;
    }
}
