/**
 * WPBakery Page Builder Integration Styles
 * 
 * Styles for Cbran Management elements in WPBakery Page Builder
 */

/* Dashboard Widget Styles */
.cbran-dashboard-widget {
    margin-bottom: 30px;
}

.cbran-widget-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cbran-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cbran-widget-icon {
    margin-right: 20px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 8px;
    color: #3b82f6;
}

.cbran-widget-content {
    flex: 1;
}

.cbran-widget-label {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbran-widget-count {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

/* Stat Box Style */
.cbran-widget-stat {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.cbran-widget-stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cbran-widget-stat-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

/* Chart Style */
.cbran-widget-chart {
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.cbran-widget-chart h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.cbran-widget-chart-value {
    font-size: 36px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

/* User Profile Styles */
.cbran-user-profile {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cbran-profile-avatar {
    margin-right: 20px;
}

.cbran-profile-avatar img {
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

.cbran-profile-info {
    flex: 1;
}

.cbran-profile-name {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.cbran-profile-email {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #64748b;
}

.cbran-profile-role {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cbran-widget-card {
        flex-direction: column;
        text-align: center;
    }

    .cbran-widget-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cbran-user-profile {
        flex-direction: column;
        text-align: center;
    }

    .cbran-profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cbran-widget-stat-value {
        font-size: 36px;
    }

    .cbran-widget-chart-value {
        font-size: 28px;
    }
}

/* WPBakery Editor Styles */
.vc_element-icon.icon-cbran-management,
.vc_element-icon.icon-cbran-form,
.vc_element-icon.icon-cbran-dashboard,
.vc_element-icon.icon-cbran-profile {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDNINSAyIDAgMCAwLTIgMlYxNGEyIDIgMCAwIDAgMiAySDE0QTIgMiAwIDAgMCAxNiAxNFY3IiBzdHJva2U9IiM2NDc0OGIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xOC4zNzUgMi42MjVhMSAxIDAgMCAxIDMgM0wxMiAxNUw4IDE2TDEyIDEyWiIgc3Ryb2tlPSIjNjQ3NDhiIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K');
    background-size: 32px 32px;
    background-position: center;
    background-repeat: no-repeat;
}
