/* ==================== admin-style.css ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a4d8f 0%, #0d2847 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Login oldal */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #1a4d8f;
    text-align: center;
}

.login-box h2 {
    color: #1a4d8f;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.login-box p {
    color: #666;
    margin-bottom: 35px;
    font-size: 1.1em;
}

/* Admin Container */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #1a4d8f;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 4px solid #1a4d8f;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h1 {
    color: #1a4d8f;
    font-size: 2.5em;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn-primary {
    padding: 15px 30px;
    background: linear-gradient(135deg, #1a4d8f 0%, #0d2847 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 77, 143, 0.4);
}

.btn-secondary {
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    padding: 12px 25px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-edit {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9em;
}

.btn-edit:hover {
    background: #218838;
}

.btn-view {
    padding: 8px 16px;
    background: #17a2b8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
}

.btn-view:hover {
    background: #138496;
}

.btn-delete {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
}

.btn-delete:hover {
    background: #c82333;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1.05em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a4d8f;
    box-shadow: 0 0 0 4px rgba(26, 77, 143, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Alerts */
.alert {
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.05em;
}

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

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

/* Upload Section */
.upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 40px;
    border-left: 6px solid #1a4d8f;
}

.upload-section h3 {
    margin-bottom: 25px;
    color: #1a4d8f;
    font-size: 1.8em;
}

.upload-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

/* PDF List */
.pdf-list {
    background: white;
    padding: 35px;
    border-radius: 15px;
    border-left: 6px solid #1a4d8f;
}

.pdf-list h3 {
    margin-bottom: 30px;
    color: #1a4d8f;
    font-size: 1.8em;
}

.pdf-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #1a4d8f;
    transition: all 0.3s ease;
}

.pdf-row:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.pdf-details h4 {
    color: #1a4d8f;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.pdf-details p {
    color: #666;
    font-size: 0.95em;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
}

.status-badge.visible {
    background: #d4edda;
    color: #155724;
}

.status-badge.hidden {
    background: #f8d7da;
    color: #721c24;
}

.pdf-row-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    border-top: 5px solid #1a4d8f;
}

.modal-content h3 {
    color: #1a4d8f;
    font-size: 2em;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-actions button {
    flex: 1;
}

.text-center {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-box {
        padding: 25px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-header h1 {
        font-size: 2em;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .pdf-row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .pdf-row-actions {
        justify-content: stretch;
    }
    
    .pdf-row-actions a,
    .pdf-row-actions button {
        flex: 1;
        text-align: center;
    }
    
    .upload-section,
    .pdf-list {
        padding: 20px;
    }
    
    .login-box {
        padding: 30px;
    }
}