/**
 * Admin Dashboard CSS for Subscription System
 *
 * @package    Subscription_System
 * @subpackage Subscription_System/admin/css
 */

/* Full width container */
.subscription-system-full-width {
    margin: 0 -20px 0 -22px;
    padding: 0;
    background: #f1f1f1;
    min-height: 100vh;
}

.subscription-system-admin-content {
    max-width: none;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
}

.plugin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.plugin-info h1 {
    margin: 0 0 15px 0;
    font-size: 36px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.plugin-description {
    margin: 0 0 10px 0;
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.4;
}

.plugin-version {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.plugin-logo .dashicons {
    font-size: 80px;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon .dashicons {
    font-size: 40px;
    color: #0073aa;
    background: #f0f6ff;
    padding: 15px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #23282d;
    font-weight: 700;
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.quick-actions, .shortcode-reference, .system-status {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.quick-actions h2, .shortcode-reference h2, .system-status h2 {
    margin: 0 0 30px 0;
    color: #23282d;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.action-card {
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 30px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card:hover {
    border-color: #0073aa;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.action-card h3 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 20px;
    font-weight: 600;
}

.action-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.shortcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.shortcode-item {
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 25px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.shortcode-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shortcode-item h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
}

.shortcode-item p {
    margin: 0 0 15px 0;
    color: #666;
}

.shortcode-code {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.shortcode-code code {
    flex: 1;
    background: none;
    padding: 0;
    font-size: 16px;
    color: #d63384;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.status-list {
    margin-top: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.status-item:last-child {
    border-bottom: none;
}

.status-item .dashicons {
    font-size: 20px;
}

.status-item.status-good .dashicons {
    color: #46b450;
}

.status-item.status-warning .dashicons {
    color: #ffb900;
}

.status-item.status-error .dashicons {
    color: #dc3232;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .subscription-system-admin-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .subscription-system-full-width {
        margin: 0 -10px;
    }
    
    .subscription-system-admin-content {
        padding: 15px;
    }
    
    .plugin-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .plugin-info h1 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid, .shortcode-grid {
        grid-template-columns: 1fr;
    }
    
    .shortcode-code {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .shortcode-code .button {
        width: 100%;
        text-align: center;
    }
}

/* Hide WordPress admin notices on this page */
.subscription-system-full-width ~ .notice,
.subscription-system-full-width ~ .error,
.subscription-system-full-width ~ .updated {
    display: none !important;
}

/* Shortcode Examples Section */
.shortcode-examples {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.shortcode-examples h2 {
    margin: 0 0 30px 0;
    color: #23282d;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.shortcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.shortcode-card {
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 25px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shortcode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.shortcode-card:hover::before {
    transform: scaleX(1);
}

.shortcode-card:hover {
    border-color: #0073aa;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.shortcode-card h3 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
}

.shortcode-card p {
    color: #666;
    margin: 15px 0 0 0;
    line-height: 1.5;
    font-size: 14px;
}

.shortcode-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.shortcode-display:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.shortcode-display code {
    flex: 1;
    background: none;
    padding: 0;
    font-size: 16px;
    color: #d63384;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border: none;
}

.copy-shortcode {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.copy-shortcode:hover {
    background: #005a87;
    transform: scale(1.05);
}

.copy-shortcode .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* System Information Section */
.system-info {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.system-info h2 {
    margin: 0 0 30px 0;
    color: #23282d;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f0f6ff;
    transform: translateX(5px);
}

.info-item strong {
    color: #23282d;
    font-weight: 600;
    font-size: 14px;
}

.info-item span {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.status-enabled {
    color: #46b450 !important;
    font-weight: 600 !important;
    background: #e8f5e8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px !important;
}

.status-disabled {
    color: #dc3232 !important;
    font-weight: 600 !important;
    background: #ffeaea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px !important;
}

/* Responsive updates for new sections */
@media (max-width: 768px) {
    .shortcode-grid {
        grid-template-columns: 1fr;
    }
    
    .shortcode-display {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .copy-shortcode {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
} 