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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

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

.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.admin-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
}

.feature-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fe2c55;
}

.feature-card {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 44, 85, 0.2);
}

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

.feature-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.feature-info p {
    color: #888;
    font-size: 0.9rem;
}

.feature-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
}

.feature-stats span {
    color: #aaa;
    font-size: 0.9rem;
}

.feature-stats strong {
    color: #fe2c55;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #fe2c55;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Configuration Panel */
.config-panel {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #2a2a2a;
}

.config-panel h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fe2c55;
}

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

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

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #fe2c55;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 5px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    color: #fff;
    font-weight: 500;
}

.help-text {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
    margin-left: 28px;
}

.save-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #fe2c55 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 44, 85, 0.3);
}

.save-btn:active {
    transform: translateY(0);
}

/* Analytics Section */
.analytics-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.analytics-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fe2c55;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

.chart-container {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #2a2a2a;
}

.chart-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Activity Log */
.activity-log {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
}

.activity-log h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fe2c55;
}

.log-container {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #2a2a2a;
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    padding: 12px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    border-left: 3px solid #fe2c55;
}

.log-entry .log-time {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.log-entry .log-action {
    color: #fff;
    font-weight: 500;
}

.log-entry .log-user {
    color: #fe2c55;
    font-size: 0.9rem;
    margin-top: 5px;
}

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

/* Success/Error Messages */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: #4caf50;
    color: white;
}

.message.error {
    background: #f44336;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 1.8rem;
    }

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

    .feature-stats {
        flex-direction: column;
        gap: 10px;
    }
}
