/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
}

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

/* Sidebar */
.sidebar {
    width: 250px;
    background: #1a1a1a;
    color: white;
    overflow-y: auto;
}

.logo {
    padding: 20px;
    background: #000;
    text-align: center;
}

.logo h2 {
    font-size: 20px;
}

.menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item:hover {
    background: #2a2a2a;
    color: white;
}

.menu-item.active {
    background: #fe2c55;
    color: white;
}

.menu-item span {
    margin-right: 10px;
    font-size: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    color: #333;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu button {
    padding: 8px 16px;
    background: #fe2c55;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Content */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #fe2c55;
}

/* Table */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f5f5f5;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

td {
    padding: 15px;
    border-top: 1px solid #e1e1e1;
}

tr:hover {
    background: #f9f9f9;
}

/* Buttons */
button {
    padding: 10px 20px;
    background: #fe2c55;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

button:hover {
    background: #d41e42;
}

button.secondary {
    background: #ccc;
    color: #333;
}

button.success {
    background: #4caf50;
}

button.danger {
    background: #f44336;
}

.section-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Settings */
.settings-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.settings-group {
    margin-bottom: 30px;
}

.settings-group h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #fe2c55;
    padding-bottom: 10px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

/* Features */
.features-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.feature-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.feature-toggle:last-child {
    border-bottom: none;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: #4caf50;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch.active::after {
    left: 33px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .menu-item span {
        margin: 0;
    }
    
    .menu-item {
        justify-content: center;
        font-size: 0;
    }
    
    .menu-item span {
        font-size: 24px;
    }
    
    .logo h2 {
        font-size: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
