/* Admin Panel Styles */
.admin-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 2rem 0;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.sidebar-header p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-menu .material-icons {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.admin-content {
    flex: 1;
    background: #f8f9fa;
    padding: 2rem;
    overflow-x: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h2 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
}

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

.btn-edit {
    background: #28a745;
    color: white;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.btn .material-icons {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

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

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

/* Form Styles */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 1.5rem;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

.current-image img {
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 100%;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Table Styles */
.cards-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cards-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.cards-table th,
.cards-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

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

.table-image {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

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

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

.actions {
    display: flex;
    gap: 0.5rem;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 3rem;
}

.no-data a {
    color: #2c5aa0;
    text-decoration: none;
}

.no-data a:hover {
    text-decoration: underline;
}

.star {
    color: #ffb300;
    font-size: 16px;
}

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

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 1rem;
    }
    
    .sidebar-menu li {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .sidebar-menu a {
        white-space: nowrap;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cards-table {
        overflow-x: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cards-table table {
        min-width: 800px;
    }
}