/* Admin Panel Styles for Imperial Polk Gun Club */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ==================== LOGIN PAGE ==================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    padding: 20px;
}

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

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-box h1 {
    color: #1a472a;
    margin-bottom: 5px;
    font-size: 24px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-box .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-box label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.login-box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: #1a472a;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #1a472a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2d5a3d;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #1a472a;
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success-message {
    background: #efe;
    color: #060;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ==================== DASHBOARD LAYOUT ==================== */

.admin-nav {
    background: #1a472a;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ==================== SIDEBAR ==================== */

.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background: #f5f5f5;
    color: #1a472a;
}

.sidebar-menu li a.active {
    background: #e8f5e9;
    color: #1a472a;
    border-left-color: #1a472a;
    font-weight: 500;
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

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

.content-section h2 {
    color: #1a472a;
    margin-bottom: 10px;
    font-size: 28px;
}

.content-section > p {
    color: #666;
    margin-bottom: 25px;
}

/* ==================== DASHBOARD CARDS ==================== */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.dashboard-card p {
    color: #1a472a;
    font-size: 24px;
    font-weight: 600;
}

.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-actions h3 {
    margin-bottom: 15px;
    color: #333;
}

.quick-actions button {
    background: #1a472a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.quick-actions button:hover {
    background: #2d5a3d;
}

/* ==================== FORMS ==================== */

.form-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.form-container h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

.hours-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background: #1a472a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #2d5a3d;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* ==================== LISTS ==================== */

.list-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.list-container h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-header h4 {
    color: #333;
    font-size: 16px;
}

.item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.item-date,
.item-category {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.item-time {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.item-preview {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 12px;
    margin-bottom: 15px;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: #2196f3;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-edit:hover {
    background: #1976d2;
}

.btn-delete {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

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

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.empty {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #c00;
    padding: 20px;
}

/* ==================== NOTIFICATIONS ==================== */

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a472a;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 0;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 0 10px;
    }
    
    .sidebar-menu li a {
        padding: 8px 12px;
        border-radius: 6px;
        border-left: none;
        font-size: 14px;
    }
    
    .sidebar-menu li a.active {
        border-left: none;
        background: #1a472a;
        color: white;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .quick-actions button {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* ==================== FOOTER STYLES ==================== */

#footer {
    background-color: #1a472a;
    color: #ffffff;
    margin-top: 40px;
}

#footer-widgets {
    padding: 40px 0 20px;
}

#footer-widgets .widget-title {
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#footer-widgets .textwidget,
#footer-widgets .textwidget p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

#footer-widgets a {
    color: #ffffff;
    text-decoration: none;
}

#footer-widgets a:hover {
    color: #cccccc;
}

#footer-bottom {
    background-color: #0f2a1a;
    padding: 15px 0;
    border-top: 1px solid #2d5a3d;
}

#footer-bottom #copyright {
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

#footer-bottom #copyright a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
}

#footer-bottom #copyright a:hover {
    opacity: 1;
}

/* Footer layout */
.footer-widgets-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-box {
    flex: 1;
    min-width: 250px;
}

.footer-box .widget-title {
    margin-bottom: 15px;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 10px;
}

.recent-posts-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.recent-posts-list .recent-posts-date {
    color: #cccccc;
    font-size: 12px;
}

#footer-widgets .widget_pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer-widgets .widget_pages li {
    margin-bottom: 8px;
}

#footer-widgets .widget_pages a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

#footer-widgets .widget_pages a:hover {
    color: #cccccc;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-widgets-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-box {
        min-width: auto;
    }
}
