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

body {
    font-family: 'Raleway', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-title {
    color: #000000;
    font-size: 1.25rem;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #000000;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link.active {
    font-weight: 600;
}

/* Auth Cards */
.auth-card {
    background: #ffffff;
    padding: 2rem;
    max-width: 400px;
    margin: 2rem auto;
}

.auth-card h1 {
    color: #000000;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.subtitle {
    text-align: center;
    color: #000000;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    background: #ffffff;
    color: #000000;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #000000;
    font-size: 0.75rem;
    opacity: 0.6;
}

.password-hint {
    color: #000000;
    font-size: 0.75rem;
    opacity: 0.6;
}

.password-validation {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.password-validation .validation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.password-validation .validation-item.valid {
    color: #48bb78;
}

.password-validation .validation-item.invalid {
    color: #f56565;
}

.password-validation .validation-icon {
    font-size: 0.75rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    background: #ffffff;
    color: #000000;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.btn-primary:hover {
    background: #333333;
}

/* Circular Buttons for Yes/No */
.btn-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    padding: 1rem;
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-circle:hover {
    transform: scale(1.05);
}

.btn-circle:active {
    transform: scale(0.95);
}

.btn-circle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-circle:disabled:hover {
    transform: none;
}

.btn-circle-green {
    background: #48bb78;
}

.btn-circle-green:hover:not(:disabled) {
    background: #38a169;
}

.btn-circle-red {
    background: #f56565;
}

.btn-circle-red:hover:not(:disabled) {
    background: #e53e3e;
}

.btn-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    font-family: 'Raleway', sans-serif;
    padding: 0.5rem;
}

/* Home Page */
.home-content {
    background: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
}

.home-content h1 {
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.motivational-text {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 3rem;
    opacity: 0.7;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

/* Page Alert */
.page-alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    text-align: center;
}

.page-alert.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.page-alert.success {
    background: #48bb78;
}

.page-alert.info {
    background: #000000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 1.5rem;
    min-width: 150px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000000;
    opacity: 0.7;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
}

/* Profile Page */
.profile-card {
    background: #ffffff;
    padding: 2rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.profile-card h1 {
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
}

/* History Page */
.history-card {
    background: #ffffff;
    padding: 2rem 1rem;
}

.history-card h1 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table thead {
    background: #ffffff;
    border-bottom: 2px solid #000000;
}

.history-table th {
    padding: 1rem;
    text-align: left;
    color: #000000;
    font-weight: 600;
    font-size: 0.9rem;
}

.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    color: #000000;
}

.history-table tbody tr:hover {
    background: #f5f5f5;
}

.response-no {
    color: #48bb78;
    font-weight: 500;
}

.response-yes {
    color: #f56565;
    font-weight: 500;
}

.loading {
    text-align: center;
    color: #000000;
    padding: 2rem;
    opacity: 0.6;
}

/* Report Page */
.report-card {
    background: #ffffff;
    padding: 2rem 1rem;
}

.report-card h1 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.chart-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #f5f5f5;
}

.tab-btn.active {
    background: #000000;
    color: #ffffff;
}

.chart-container {
    margin-top: 2rem;
    position: relative;
    height: 300px;
}

/* Messages */
.error-message {
    background: #ffffff;
    color: #000000;
    padding: 1rem;
    border: 1px solid #000000;
    margin-top: 1rem;
    display: none;
    font-size: 0.9rem;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #ffffff;
    color: #000000;
    padding: 1rem;
    border: 1px solid #000000;
    margin-top: 1rem;
    display: none;
    font-size: 0.9rem;
}

.success-message.show {
    display: block;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #000000;
    font-size: 0.9rem;
}

.auth-link a {
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
}

.auth-link a:hover {
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .nav-container {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
    .auth-card,
    .profile-card {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }
    
    .auth-card h1,
    .profile-card h1,
    .history-card h1,
    .report-card h1,
    .home-content h1 {
        font-size: 1.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2rem;
        margin: 2rem 0;
        align-items: center;
    }
    
    .btn-circle {
        width: 200px;
        height: 200px;
        margin: 0.5rem;
    }
    
    .btn-text {
        font-size: 1rem;
    }
    
    .page-alert {
        top: 80px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1rem;
        margin-top: 3rem;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    
    .chart-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .history-table {
        font-size: 0.85rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .btn-circle {
        width: 180px;
        height: 180px;
    }
    
    .btn-text {
        font-size: 0.85rem;
    }
    
    .home-content h1 {
        font-size: 1.1rem;
    }
    
    .motivational-text {
        font-size: 0.85rem;
    }
    
    .page-alert {
        top: 70px;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        max-width: 95%;
    }
}
