/* Base styles - Reset, body, container, header */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode header {
    background: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #333;
    font-size: 24px;
}

body.dark-mode h1 {
    color: #e0e0e0;
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Header link */
.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(142, 68, 173, 0.3);
}

.header-link:hover {
    background: linear-gradient(135deg, #7d3c98, #6c3483);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(142, 68, 173, 0.4);
}

.header-link .link-icon {
    font-size: 16px;
}

body.dark-mode .header-link {
    background: linear-gradient(135deg, #7d3c98, #6c3483);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .header-link:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.theme-toggle {
    padding: 8px 12px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.logout-btn {
    padding: 6px 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    color: #888;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
}

body.dark-mode .app-footer {
    color: #666;
    border-top-color: #333;
}

.footer-separator {
    margin: 0 8px;
    opacity: 0.5;
}
