/* admin/admin.css */
.admin-login, .admin-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.login-container, .dashboard-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.dashboard-container {
    max-width: 800px;
}

h2, h3 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    margin-top: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Shared button styles */
.button-shared {
    width: 100%;
    min-width: 180px;
    max-width: 180px;
    padding: 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.5;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
}

.button-shared:hover {
    background: #764ba2;
}

button:not(.button-shared),
button.button-shared {
    /* Ensure buttons without inline overrides use shared styles */
}

.download-button {
    margin-top: 1rem;
}

.template-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.template-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem;
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
}

.template-buttons button.active {
    background: #667eea;
    color: white;
}

.template-buttons button:hover {
    background: #764ba2;
    color: white;
}

.error {
    color: #dc3545;
    text-align: center;
    margin-bottom: 1rem;
}

.success {
    color: #28a745;
    text-align: center;
    margin-bottom: 1rem;
}

.dashboard-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.back-home, .logout {
    color: #667eea;
    text-decoration: none;
}

.back-home:hover, .logout:hover {
    color: #764ba2;
}

@media (max-width: 480px) {
    .login-container, .dashboard-container {
        padding: 1rem;
        margin: 0 10px;
    }
    
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    input, textarea { padding: 0.6rem; font-size: 0.9rem; }
    .button-shared {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-width: 150px;
        max-width: 150px;
    }
    .template-buttons button { min-width: 100px; }
    .dashboard-actions { flex-direction: column; gap: 0.5rem; text-align: right; }
}