/* --- General Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* Common sans-serif system fonts */
    margin: 0;
    background: linear-gradient(to bottom, #e0ffe0, #c0ffc0); /* Light green gradient */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333; /* Default text color */
    line-height: 1.5; /* Standard line height */
}

/* --- Header Styles --- */
.header {
    background-color: #2e8b57; /* Darker green, matches header in images */
    color: white;
    padding: 24px 0; /* Increased padding */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header h1 {
    margin: 0;
    font-size: 26px; /* Adjusted font size */
    font-weight: normal; /* Normal weight as in screenshot */
    letter-spacing: 0.5px; /* Slight letter spacing */
}

/* --- Container Layout --- */
.container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top to allow space for notification */
    padding: 40px 20px; /* Increased top/bottom padding */
    width: 100%;
    box-sizing: border-box;
}

/* --- Card Base Styles (Login and Feedback) --- */
.login-card, .feedback-section {
    background-color: white;
    padding: 30px 40px; /* Adjusted padding */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly softer shadow */
    width: 100%;
    box-sizing: border-box;
}

/* --- Login Card Specific Styles --- */
.login-card {
    max-width: 420px; /* Slightly wider for the login card */
    text-align: center;
}

.login-card h2 {
    color: #2e8b57;
    font-size: 22px; /* Adjusted font size */
    font-weight: normal;
    margin-bottom: 12px; /* Adjusted margin */
}

.login-card p {
    color: #555;
    font-size: 14px;
    margin-bottom: 30px; /* Increased bottom margin */
    line-height: 1.4;
}

.form-group {
    text-align: left;
    margin-bottom: 20px; /* Adjusted margin */
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* Adjusted margin */
    color: #333;
    font-weight: 600; /* Semi-bold for labels */
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%; /* Full width within form group */
    padding: 12px 15px; /* Adjusted padding */
    border: 1px solid #ddd; /* Lighter border */
    border-radius: 6px; /* Slightly larger border-radius */
    font-size: 16px;
    box-sizing: border-box;
}

.buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between buttons */
    margin-top: 30px; /* Increased top margin */
}

.btn {
    flex: 1; /* Make buttons take equal width */
    padding: 12px 25px; /* Adjusted padding */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600; /* Semi-bold */
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #555;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.login-btn, .logout-btn {
    background-color: #4CAF50; /* Green */
    color: white;
}

.login-btn:hover, .logout-btn:hover {
    background-color: #45a049;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.error-message {
    color: #e74c3c; /* Red color */
    font-size: 14px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

/* --- Feedback Page Specific Styles --- */
.feedback-section.table-view {
    max-width: 960px; /* Wider to accommodate table */
    width: 95%; /* Responsive width */
    padding: 25px 30px; /* Adjusted padding */
    text-align: left;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px; /* Adjusted padding */
    margin-bottom: 25px; /* Adjusted margin */
}

.feedback-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px; /* Adjusted font size */
    font-weight: normal;
}

.dropdown-arrow {
    font-size: 22px; /* Slightly larger arrow */
    color: #555;
    cursor: pointer;
}

.feedback-table-container {
    overflow-x: auto;
    width: 100%;
}

#feedbackTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

#feedbackTable thead th {
    background-color: white;
    color: #777; /* Slightly darker grey for header text */
    padding: 12px 18px; /* Adjusted padding */
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13.5px; /* Precise font size */
    text-transform: capitalize;
    font-weight: normal;
    white-space: nowrap; /* Prevent wrapping */
}

#feedbackTable tbody td {
    padding: 15px 18px; /* Larger padding for table cells */
    border-bottom: 1px solid #f5f5f5; /* Lighter border between rows */
    vertical-align: middle; /* Center content vertically */
    font-size: 14.5px; /* Precise font size */
    color: #444; /* Slightly darker text color */
}

#feedbackTable tbody tr:last-child td {
    border-bottom: none;
}

#feedbackTable tbody tr:hover {
    background-color: #f8fff8; /* Very subtle light green hover */
}

.stars-col {
    white-space: nowrap;
}

.stars-col .stars {
    color: gold;
    font-size: 16px; /* Star size */
    letter-spacing: 2px; /* Spacing between stars */
    margin-right: 5px; /* Space before number */
}

.stars-col span:not(.stars) { /* For the (X) number next to stars */
    font-size: 13px;
    color: #666;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 4px 10px; /* Adjusted padding */
    border-radius: 15px; /* More rounded */
    font-size: 12px;
    color: #666;
    font-weight: normal;
    white-space: nowrap;
}

.action-btn {
    background: none;
    border: none;
    color: #ff4d4f; /* Red for trash icon */
    font-size: 17px; /* Slightly larger icon */
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease, transform 0.1s ease;
}

.action-btn:hover {
    color: #cc0000;
    transform: scale(1.05); /* Slight scale on hover */
}

.logout-container {
    position: fixed;
    bottom: 25px; /* Adjusted position */
    right: 25px; /* Adjusted position */
}

/* --- Login Successful Notification --- */
.login-success-notification {
    position: fixed;
    bottom: 25px; /* Adjusted position */
    right: 170px; /* Position relative to logout button */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    padding: 15px 20px;
    text-align: left;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
    transform: translateY(0);
    z-index: 1000;
    border-left: 5px solid #4CAF50; /* Green stripe */
}

.login-success-notification p {
    margin: 0;
    font-size: 13.5px; /* Adjusted font size */
    color: #555;
    line-height: 1.4;
}

.login-success-notification p strong {
    color: #4CAF50;
    font-size: 15px; /* Adjusted font size */
    font-weight: bold;
    display: block; /* Ensures it's on its own line */
    margin-bottom: 4px; /* Space between bold text and next line */
}

/* Add this to your admin/style.css if not already present */
.error-message {
    color: #e74c3c; /* Red color for errors */
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    display: none; /* Hidden by default, shown by JS */
}