/* Bureaucratic Evil Law Firm Theme - Edna's Migration Office */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #f5f0e8;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        linear-gradient(to bottom, #f5f0e8 0%, #ede8df 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #fff;
    border: 2px solid #8b0000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
}

header h1 {
    font-size: 2.5em;
    color: #8b0000;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1em;
    color: #555;
    font-style: italic;
}

/* Main Content Area */
.main-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Application Card - Form Section */
.application-card {
    background: #fff;
    padding: 30px;
    border: 2px solid #8b0000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.application-card h2 {
    font-size: 2em;
    color: #8b0000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c2c2c;
    font-size: 1em;
}

.helper-text {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #8b0000;
    border-radius: 3px;
    font-family: 'Georgia', serif;
    font-size: 0.95em;
    background: #fafafa;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #8b0000;
    background: #fff;
}

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

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

/* Submit Button */
.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #8b0000;
}

.submit-button {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-family: 'Georgia', serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

.submit-button:hover {
    background: #a00000;
}

.submit-button:active {
    transform: translateY(1px);
}

/* Confirmation Message */
.confirmation-message {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    font-weight: bold;
    border-radius: 4px;
}

.confirmation-message h3 {
    color: #1a5f1a;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.confirmation-message p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.confirmation-message .app-id {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1.1em;
}

.confirmation-message .status-line {
    color: #555;
    font-style: italic;
    font-weight: normal;
}

.confirmation-message .edna-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #4caf50;
    color: #2e7d32;
    font-weight: bold;
    font-style: italic;
}

.confirmation-message .reviewer-note {
    margin-top: 10px;
    color: #555;
    font-style: italic;
    font-weight: normal;
}

/* Admin Page Styles */
.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #fff;
    border: 2px solid #8b0000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.admin-header h1 {
    font-size: 2.5em;
    color: #8b0000;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-header a {
    color: #8b0000;
    text-decoration: underline;
    font-size: 0.9em;
}

.login-form {
    max-width: 400px;
    margin: 3rem auto;
    padding: 30px;
    background: #fff;
    border: 2px solid #8b0000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.login-form h2 {
    color: #8b0000;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #8b0000;
    border-radius: 3px;
    font-family: 'Georgia', serif;
    font-size: 0.95em;
    background: #fafafa;
}

.login-form input[type="password"]:focus {
    outline: 2px solid #8b0000;
    background: #fff;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #8b0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Georgia', serif;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-form button:hover {
    background: #a00000;
}

.login-form p {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}

/* Application Cards in Admin - Case Card Style */
.applications-list {
    max-width: 1200px;
    margin: 0 auto;
}

.application-card-admin {
    background: #fff;
    border: 2px solid #8b0000;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    position: relative;
    font-size: 0.95em;
}

.application-card-admin::before {
    content: "FILED";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8b0000;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.7em;
    font-weight: bold;
    border-radius: 2px;
    letter-spacing: 1px;
}

.application-card-admin .card-header {
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.application-card-admin .card-header h3 {
    color: #8b0000;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
}

.status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 10px;
}

.status-tag.new {
    background: #e0e0e0;
    color: #555;
}

.status-tag.accepted {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-tag.maybe {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-tag.declined {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.meta-line {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 15px;
    font-style: italic;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.card-body {
    margin-bottom: 15px;
}

.card-body p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.card-body strong {
    color: #555;
    font-size: 0.9em;
    display: inline-block;
    min-width: 140px;
}

.scan-info {
    margin: 15px 0;
    padding: 12px;
    background: #f5f5f5;
    border-left: 4px solid #8b0000;
    border-radius: 3px;
}

.scan-info a {
    color: #8b0000;
    text-decoration: underline;
    margin-right: 15px;
    font-weight: bold;
}

.scan-info a:hover {
    color: #a00000;
}

.admin-controls {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #8b0000;
}

.admin-controls .form-group {
    margin-bottom: 15px;
}

.admin-controls label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c2c2c;
    font-size: 0.95em;
}

.admin-controls select,
.admin-controls textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #8b0000;
    border-radius: 3px;
    font-family: 'Georgia', serif;
    font-size: 0.95em;
    background: #fafafa;
}

.admin-controls select:focus,
.admin-controls textarea:focus {
    outline: 2px solid #8b0000;
    background: #fff;
}

.admin-controls textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-controls button {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    font-size: 1em;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-controls button:hover {
    background: #a00000;
}

.admin-controls button:active {
    transform: translateY(1px);
}

/* Empty State */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    font-size: 1.1em;
    background: #fff;
    border: 2px dashed #8b0000;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1,
    .admin-header h1 {
        font-size: 1.8em;
    }

    .application-card,
    .application-card-admin {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-tag {
        margin-top: 10px;
        margin-left: 0;
    }
}
