/* CWP User Manager Pro - Frontend Styles */

/* Dashboard Container */
.cwp-ump-dashboard {
    padding: 20px;
    background: #f9f9f9;
}

/* Stats Grid */
.cwp-ump-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin: 0;
}

/* Cards */
.cwp-ump-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.cwp-ump-card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cwp-ump-card-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* Buttons */
.cwp-ump-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.cwp-ump-btn:hover {
    background: #135e96;
    color: #fff;
}

.cwp-ump-btn-secondary {
    background: #6c757d;
}

.cwp-ump-btn-secondary:hover {
    background: #5a6268;
}

.cwp-ump-btn-success {
    background: #28a745;
}

.cwp-ump-btn-success:hover {
    background: #218838;
}

.cwp-ump-btn-danger {
    background: #dc3545;
}

.cwp-ump-btn-danger:hover {
    background: #c82333;
}

/* Package Cards */
.cwp-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #2271b1;
}

.package-card h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.package-price {
    font-size: 36px;
    font-weight: bold;
    color: #2271b1;
    margin: 15px 0;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Forms */
.cwp-ump-form {
    max-width: 600px;
}

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

.cwp-ump-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cwp-ump-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cwp-ump-form-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Tables */
.cwp-ump-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cwp-ump-table th,
.cwp-ump-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cwp-ump-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.cwp-ump-table tr:hover {
    background: #f9f9f9;
}

/* Badges */
.cwp-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Progress Bar */
.cwp-progress {
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.cwp-progress-bar {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

/* Alerts */
.cwp-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.cwp-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cwp-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cwp-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .cwp-ump-stats {
        grid-template-columns: 1fr;
    }
    
    .cwp-packages-grid {
        grid-template-columns: 1fr;
    }
}
