/**
 * DesheeLabs Content Protection - Admin Styles
 * Advanced Admin Panel Styling
 */

/* Header with Logo */
.desheelabs-cp-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    margin: 20px 0 30px -20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.desheelabs-cp-header .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desheelabs-cp-header .logo-container img {
    height: 60px;
    width: auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.desheelabs-cp-header .header-content h1 {
    color: #fff;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.desheelabs-cp-header .header-content p {
    color: rgba(255,255,255,0.9);
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Tabs Navigation */
.desheelabs-cp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.desheelabs-cp-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.desheelabs-cp-tab:hover {
    color: #667eea;
    background: #f5f7fa;
}

.desheelabs-cp-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f5f7fa;
}

/* Tab Content */
.desheelabs-cp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.desheelabs-cp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.desheelabs-cp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.desheelabs-cp-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.desheelabs-cp-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desheelabs-cp-card h2 .dashicons {
    color: #667eea;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Toggle Switch */
.desheelabs-cp-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-right: 15px;
}

.desheelabs-cp-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.desheelabs-cp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.desheelabs-cp-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.desheelabs-cp-toggle input:checked + .desheelabs-cp-toggle-slider {
    background-color: #667eea;
}

.desheelabs-cp-toggle input:checked + .desheelabs-cp-toggle-slider:before {
    transform: translateX(30px);
}

.desheelabs-cp-toggle input:focus + .desheelabs-cp-toggle-slider {
    box-shadow: 0 0 1px #667eea;
}

/* Form Fields */
.desheelabs-cp-form-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.desheelabs-cp-form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.desheelabs-cp-form-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.desheelabs-cp-form-group .description {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
    margin-left: 75px;
    font-style: italic;
}

.desheelabs-cp-form-group input[type="text"],
.desheelabs-cp-form-group input[type="number"],
.desheelabs-cp-form-group textarea,
.desheelabs-cp-form-group select {
    width: 100%;
    max-width: 500px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.desheelabs-cp-form-group input[type="text"]:focus,
.desheelabs-cp-form-group input[type="number"]:focus,
.desheelabs-cp-form-group textarea:focus,
.desheelabs-cp-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Statistics Cards */
.desheelabs-cp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.desheelabs-cp-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.desheelabs-cp-stat-card.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.desheelabs-cp-stat-card.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.desheelabs-cp-stat-card.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.desheelabs-cp-stat-card.purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.desheelabs-cp-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.desheelabs-cp-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Buttons */
.desheelabs-cp-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.desheelabs-cp-btn-primary {
    background: #667eea;
    color: white;
}

.desheelabs-cp-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.desheelabs-cp-btn-secondary {
    background: #6c757d;
    color: white;
}

.desheelabs-cp-btn-secondary:hover {
    background: #5a6268;
}

.desheelabs-cp-btn-success {
    background: #28a745;
    color: white;
}

.desheelabs-cp-btn-success:hover {
    background: #218838;
}

/* Success Message */
.desheelabs-cp-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
    background: #f0f9ff;
    border-color: #667eea;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desheelabs-cp-notice.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Advanced Options */
.desheelabs-cp-advanced-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 15px;
}

.desheelabs-cp-advanced-options h4 {
    margin-top: 0;
    color: #667eea;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 782px) {
    .desheelabs-cp-header {
        flex-direction: column;
        text-align: center;
    }
    
    .desheelabs-cp-tabs {
        flex-wrap: wrap;
    }
    
    .desheelabs-cp-stats-grid {
        grid-template-columns: 1fr;
    }
}
