/* --- Global Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0; /* Light text */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    background-color: #2c2c2c; /* Slightly lighter dark container */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 700px;
    border: 1px solid #444;
}

h1 {
    text-align: center;
    color: #4CAF50; /* Minecraft green accent */
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #ccc;
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #f0f0f0;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #3a3a3a;
    color: #f0f0f0;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background-color: #4CAF50; /* Green button */
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s;
}

button[type="submit"]:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

/* --- Message Styles --- */
.message {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    border: 1px solid;
}

.message.success {
    background-color: #28a74533; /* Light green background */
    color: #28a745; /* Dark green text */
    border-color: #28a745;
}

/* --- Admin Panel Styles (Re-styled for dark theme) --- */
.admin-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #00bcd4; /* Cyan accent for links */
    text-decoration: none;
    font-weight: bold;
}

.admin-link:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background-color: #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #444;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: #1a1a1a;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

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

.app-summary:hover {
    background-color: #444;
}

.status-Pending { background-color: #ffc107; color: #1a1a1a; font-weight: bold; border-radius: 3px; padding: 5px 8px; }
.status-Approved { background-color: #4CAF50; color: white; font-weight: bold; border-radius: 3px; padding: 5px 8px; }
.status-Rejected { background-color: #dc3545; color: white; font-weight: bold; border-radius: 3px; padding: 5px 8px; }

.actions button {
    margin-right: 5px;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.actions button[type="submit"] {
    width: auto; /* Override form button width */
}

.details-row td {
    background-color: #3a3a3a;
    border-top: 2px solid #4CAF50;
    color: #ccc;
}

.toggle-details {
    background-color: #00bcd4;
    color: #1a1a1a;
}

.toggle-details:hover {
    background-color: #0097a7;
}

.message.error {
    background-color: #dc354533;
    color: #dc3545;
    border-color: #dc3545;
}
