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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 16px;
}

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

/* Password Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.password-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-container h2 {
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.password-container input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
    background: #f7fafc;
    transition: all 0.2s;
}

.password-container input:focus {
    outline: none;
    border-color: #5a67d8;
    background: white;
}

.password-container button {
    width: 100%;
    padding: 14px;
    background: #5a67d8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.password-container button:hover {
    background: #4c51bf;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.4);
}

.password-container button:active {
    transform: translateY(0);
}

.error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Main Content */
header {
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-button,
.logout-button {
    display: inline-block;
    color: #5a67d8;
    text-decoration: none;
    padding: 10px 20px;
    background: white;
    border: 2px solid #5a67d8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-button {
    color: #e53e3e;
    border-color: #e53e3e;
}

.home-button:hover {
    background: #5a67d8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(90, 103, 216, 0.3);
}

.logout-button:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.3);
}

.content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.content h2 {
    color: #1a202c;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.content p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Apps Section */
.apps-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.apps-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.app-card:hover {
    background: white;
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.2);
}

.app-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.app-info h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.app-info p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .password-container {
        padding: 32px 24px;
    }

    .password-container h2 {
        font-size: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .content {
        padding: 24px 20px;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content p {
        font-size: 1rem;
    }
}
