* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Forms */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-logout {
    padding: 10px 20px;
    font-size: 14px;
}

/* Messages */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Links */
.link-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.link-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.link-text a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.header h1 {
    color: #333;
    font-size: 24px;
}

.card {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #ddd;
}

.info-table td {
    padding: 12px;
    text-align: left;
}

.info-table tr:last-child {
    border-bottom: none;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.history-table thead {
    background-color: #f0f0f0;
}

.history-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Home Page */
.home-container {
    max-width: 600px;
    margin: 0 auto;
}

.home-container .card {
    text-align: center;
}

.home-container h1 {
    color: white;
    margin-bottom: 10px;
}

.home-container p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 16px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.button-group .btn {
    flex: 1;
    max-width: 150px;
}

.features {
    text-align: left;
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.features h3 {
    color: #333;
    margin-bottom: 15px;
}

.features ul {
    list-style: none;
}

.features li {
    color: #555;
    padding: 8px 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .form-container {
        padding: 20px;
    }

    .dashboard-container {
        padding: 20px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header .btn {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        max-width: 100%;
    }

    .info-table td {
        padding: 8px;
        font-size: 14px;
    }

    .history-table th,
    .history-table td {
        padding: 8px;
        font-size: 12px;
    }
}
