/* ===================================
   Strong Hope Media - Admin Styles
   =================================== */

/* Admin Body */
.admin-body {
    background: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1a1a1a 100%);
    padding: 20px;
    flex-direction: column;
    gap: 2rem;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.login-header h1 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-form label i {
    color: #d4af37;
    margin-right: 0.5rem;
}

.login-form input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #1e3a8a;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    color: #d4af37;
}

.login-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.login-info h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.login-info p {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.info-note {
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    color: #856404;
    font-size: 0.9rem;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a1a1a 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo i {
    font-size: 2rem;
    color: #d4af37;
}

.admin-logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user span {
    color: #c0c0c0;
}

.btn-logout {
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Admin Navigation */
.admin-nav {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.admin-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-nav-menu li a:hover,
.admin-nav-menu li a.active {
    color: #1e3a8a;
    border-bottom-color: #d4af37;
}

/* Admin Main Content */
.admin-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Editor Controls */
.editor-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.control-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.control-group label i {
    color: #d4af37;
    margin-right: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1e3a8a;
}

/* Editor Container */
.editor-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.editor-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
}

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

.btn-success {
    background: #28a745;
    color: white;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.btn-danger {
    background: #dc3545;
    color: white;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.editor-wrapper {
    min-height: 400px;
}

.save-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    display: none;
}

.save-status.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.save-status.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Quick Edit Panel */
.quick-edit-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-edit-panel h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.quick-edit-list {
    display: grid;
    gap: 0.75rem;
}

.quick-edit-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-edit-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.quick-edit-item h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.quick-edit-item p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Pages Grid */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.page-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.page-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.page-card h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.page-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Settings */
.settings-container {
    display: grid;
    gap: 2rem;
}

.settings-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-card h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.settings-note {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 6px;
    color: #004085;
    margin-top: 1rem;
}

.text-danger {
    color: #dc3545;
}

.text-muted {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .admin-nav-menu li a {
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .editor-controls {
        grid-template-columns: 1fr;
    }

    .editor-toolbar {
        flex-direction: column;
    }

    .pages-grid {
        grid-template-columns: 1fr;
    }
}