/**
 * SmartWeb Core - Public Styles
 */

/* Currency & Language Switchers */
.smartweb-currency-switcher,
.smartweb-language-switcher {
    display: inline-block;
    margin: 0 10px;
}

.currency-select,
.language-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* Customer Dashboard */
.smartweb-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

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

.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #6366f1;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.card-description {
    color: #6b7280;
    font-size: 14px;
    margin-top: 5px;
}

/* Sites List */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.site-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.site-preview {
    height: 200px;
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.site-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.site-status.active {
    background: #10b981;
    color: #fff;
}

.site-status.pending {
    background: #f59e0b;
    color: #fff;
}

.site-status.suspended {
    background: #ef4444;
    color: #fff;
}

.site-info {
    padding: 25px;
}

.site-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.site-domain {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.site-actions {
    display: flex;
    gap: 10px;
}

.site-actions .btn {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
}

/* Account Settings */
.account-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.account-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.account-form {
    max-width: 600px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Usage Stats */
.usage-chart {
    height: 300px;
    margin-top: 20px;
}

.usage-progress {
    margin-bottom: 20px;
}

.usage-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #6366f1;
    transition: width 0.3s ease;
}

/* Notifications */
.smartweb-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.smartweb-notice.success {
    background: #d1fae5;
    color: #065f46;
}

.smartweb-notice.error {
    background: #fee2e2;
    color: #991b1b;
}

.smartweb-notice.info {
    background: #dbeafe;
    color: #1e40af;
}

.smartweb-notice .dashicons {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid,
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        padding: 25px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .site-actions {
        flex-direction: column;
    }
}