/* ========== RESET & GENERAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* ========== LOGIN PAGE (FOR CENTERING) ========== */
.login-page {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    width: 100% !important;
    padding: 20px !important;
    background-color: #f5f5f5 !important;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    color: #2c5f2d;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.login-card .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.login-card .form-group input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255,193,7,0.3);
}

.login-card .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #2c5f2d;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 10px;
}

.login-card .btn-primary:hover {
    background-color: #1f4620;
}

.login-card .back-link {
    display: block;
    text-align: center;
    color: #2c5f2d;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.login-card .back-link:hover {
    color: #ffc107;
}

/* ========== CONTAINER (FOR DASHBOARD PAGES) ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== HEADER ========== */
header {
    background-color: #2c5f2d;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 28px;
    flex: 1;
}

header a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
    margin-left: 10px;
    font-weight: bold;
}

header a:hover {
    background-color: rgba(255,255,255,0.2);
}

.back-btn {
    background-color: #ffc107 !important;
    color: #333 !important;
}

.back-btn:hover {
    background-color: #ffb300 !important;
}

.logout-btn {
    background-color: #d32f2f;
}

.logout-btn:hover {
    background-color: #b71c1c;
}

/* ========== DASHBOARD STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #ffc107;
}

.stat-card h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-number {
    color: #2c5f2d;
    font-size: 32px;
    font-weight: bold;
}

/* ========== MANAGE GRID ========== */
.manage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.manage-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.manage-card h3 {
    margin-top: 0;
    color: #2c5f2d;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255,193,7,0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary, .btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background-color: #2c5f2d;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #1f4620;
}

.btn-secondary {
    background-color: #ffc107;
    color: #333;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #ffb300;
}

.btn-submit {
    background-color: #2c5f2d;
    color: white;
    width: 100%;
    font-size: 16px;
    padding: 12px;
}

.btn-submit:hover {
    background-color: #1f4620;
}

/* ========== TABLES ========== */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table thead {
    background-color: #2c5f2d;
    color: white;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

/* ========== LIST ITEMS ========== */
.list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.list-item {
    background: #e8f5e9;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #2c5f2d;
}

.lists-section {
    margin-top: 30px;
}

.lists-section h3 {
    color: #2c5f2d;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* ========== FEEDBACK FORM ========== */
.feedback-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.questions-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2c5f2d;
}

.questions-section h3 {
    margin-top: 0;
    color: #2c5f2d;
    margin-bottom: 15px;
}

.question {
    margin-bottom: 25px;
    background: white;
    padding: 15px;
    border-radius: 5px;
}

.question label {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.rating {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rating label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.rating input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin-bottom: 15px;
    }

    header a {
        margin: 5px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .manage-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 30px;
    }
}
