/**
 * TLCNA Employment Application Styles
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

/* Login/Register Containers */
.login-container,
.register-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro-text {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 15px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    background: #666;
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

.btn-sm:hover {
    background: #555;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Login/Register Footer */
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer a,
.register-footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover,
.register-footer a:hover {
    text-decoration: underline;
}

/* Password Display */
.password-display {
    text-align: center;
}

.password-info h2 {
    font-size: 22px;
    margin: 20px 0;
    color: #333;
}

.credentials-box {
    background: #f8f9fa;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.credential-item {
    margin: 15px 0;
    font-size: 16px;
}

.credential-item strong {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.credential-value {
    display: block;
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.password-highlight {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    color: #4CAF50;
    letter-spacing: 3px;
    font-weight: bold;
}

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

    .login-container,
    .register-container {
        padding: 20px;
        margin: 20px auto;
    }

    .header h1 {
        font-size: 22px;
    }

    .password-highlight {
        font-size: 22px;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Table Styles for Admin */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 20px 0;
}

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

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

table tr:hover {
    background: #f8f9fa;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge-new {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-under-review {
    background: #fff3e0;
    color: #f57c00;
}

.badge-assigned {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-interview {
    background: #e0f2f1;
    color: #00796b;
}

.badge-hired {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-rejected {
    background: #ffebee;
    color: #c62828;
}
