/**
 * Advanced Widget Kit - Admin Dashboard Styles
 * 
 * @package Advanced_Widget_Kit
 * @since 1.0.0
 */

/* ==========================================================================
   Dashboard Layout
   ========================================================================== */

.awke-dashboard {
    margin: 0;
    background: #f1f1f1;
    min-height: 100vh;
}

.awke-dashboard .wrap {
    margin: 0;
    padding: 0;
}

/* Header */
.awke-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
    margin: 0 0 30px -20px;
    margin-left: -20px;
    margin-right: -10px;
}

.awke-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
}

.awke-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.awke-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.awke-logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.awke-version {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.awke-header-actions {
    display: flex;
    gap: 10px;
}

.awke-upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.awke-upgrade-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Dashboard Content */
.awke-dashboard-content {
    padding: 0 30px 30px;
    max-width: 1200px;
}

.awke-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.awke-col-main {
    flex: 2;
}

.awke-col-sidebar {
    flex: 1;
    max-width: 350px;
}

/* Cards */
.awke-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.awke-card-header {
    padding: 25px 30px 0;
}

.awke-card-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.awke-card-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.awke-card-content {
    padding: 25px 30px 30px;
}

/* Welcome Card */
.awke-welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.awke-welcome-card .awke-card-header h2 {
    color: white;
}

.awke-welcome-card .awke-card-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.awke-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.awke-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.awke-stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.awke-stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.awke-pro-active {
    color: #4caf50;
}

.awke-pro-inactive {
    color: #f44336;
}

/* Widgets Grid */
.awke-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.awke-widget-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.awke-widget-item.enabled {
    border-color: #4caf50;
    background: #f8fff8;
}

.awke-widget-item.disabled {
    border-color: #f0f0f0;
    background: #fafafa;
}

.awke-widget-item.locked {
    border-color: #ffc107;
    background: #fffdf0;
    opacity: 0.7;
}

.awke-widget-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.awke-widget-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    border-radius: 8px;
    margin-right: 15px;
    font-size: 20px;
}

.awke-widget-item.enabled .awke-widget-icon {
    background: #4caf50;
}

.awke-widget-item.locked .awke-widget-icon {
    background: #ffc107;
}

.awke-widget-info {
    flex: 1;
}

.awke-widget-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.awke-widget-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.awke-widget-toggle {
    margin-left: 15px;
}

.awke-widget-toggle-input {
    /* Input styles are handled by the switch styles above */
}

.awke-widget-lock {
    margin-left: 15px;
    color: #ffc107;
    font-size: 20px;
}

/* Toggle Switch */
.awke-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.awke-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.awke-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.awke-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.awke-switch input:checked + .awke-switch-slider {
    background-color: #4caf50;
}

.awke-switch input:checked + .awke-switch-slider:before {
    transform: translateX(26px);
}

/* Pro Card */
.awke-pro-card {
    border: 2px solid #ffc107;
    position: relative;
}

.awke-pro-card::before {
    content: "PRO";
    position: absolute;
    top: -1px;
    right: 20px;
    background: #ffc107;
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    font-weight: 600;
}

.awke-pro-widgets {
    opacity: 0.8;
}

.awke-pro-cta {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.awke-pro-cta h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.awke-pro-cta p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.awke-pro-cta .button {
    background: white;
    color: #ff8c00;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
}

/* Pro Badge */
.awke-pro-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* System Info */
.awke-system-info {
    /* Base styles */
}

.awke-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.awke-info-item:last-child {
    border-bottom: none;
}

.awke-info-label {
    font-weight: 500;
    color: #333;
}

.awke-info-value {
    color: #666;
    font-family: monospace;
}

/* Support Links */
.awke-support-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.awke-support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.awke-support-link:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #667eea;
}

.awke-support-link .dashicons {
    color: #667eea;
}

/* Rate Card */
.awke-rate-card {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    text-align: center;
}

.awke-rate-card h3 {
    color: white;
    margin-bottom: 10px;
}

.awke-rate-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.awke-stars {
    font-size: 24px;
    margin-bottom: 20px;
}

.awke-rate-card .button {
    background: white;
    color: #4caf50;
    border: none;
    font-weight: 500;
}

/* ==========================================================================
   Settings Page Styles
   ========================================================================== */

.awke-settings .awke-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.awke-settings .awke-card-header {
    padding: 20px 30px 10px;
    border-bottom: 1px solid #eee;
}

.awke-settings .awke-card-header h2 {
    margin: 0 0 10px 0;
}

.awke-settings .awke-card-header p {
    margin: 0;
    color: #666;
}

.awke-settings .awke-card-content {
    padding: 20px 30px;
}

.awke-settings-content {
    /* Settings content wrapper styles */
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .awke-row {
        flex-direction: column;
    }
    
    .awke-col-sidebar {
        max-width: none;
    }
    
    .awke-header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .awke-dashboard-content {
        padding: 0 15px 30px;
    }
    
    .awke-header {
        padding: 15px 20px;
        margin-left: -20px;
        margin-right: -10px;
    }
    
    .awke-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .awke-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .awke-widget-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .awke-widget-icon {
        margin-right: 0;
    }
}
