/*--------------------------------------------------
| SBP Business Portal - Premium Dashboard Styles
--------------------------------------------------*/

/* General */
#sbp-dashboard-wrapper,
#sbp-login-wrapper {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: #f5f6fa;
    color: #333;
    margin: 0;
    padding: 0;
}

h2 {
    color: var(--sbp-primary-color, #3b82f6);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Buttons */
button,
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-logout {
    display: inline-block;
    padding: 8px 16px;
    background: #ef4444;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


.btn-delete-video[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Forms */
#sbp-login-wrapper {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

#sbp-login-wrapper form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #555;
}

#sbp-login-wrapper form input[type="email"],
#sbp-login-wrapper form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#sbp-login-wrapper form input[type="email"]:focus,
#sbp-login-wrapper form input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59,130,246,0.2);
}

#sbp-login-error {
    font-size: 14px;
    color: #ef4444;
    margin-top: 10px;
}

/* Dashboard Sections */
.dashboard-section {
    background: #fff;
    padding: 25px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.dashboard-section:hover {
    transform: translateY(-2px);
}

/* Video Upload */
#sbp-upload-area {
    border: 2px dashed #3b82f6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    background: #f0f4ff;
}

#sbp-upload-area:hover {
    background: #e0f0ff;
    border-color: #06b6d4;
}

.sbp-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* My Videos List */
#sbp-videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.sbp-video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sbp-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.sbp-video-item img,
.sbp-video-item video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.sbp-video-item p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
}

.sbp-video-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.sbp-video-actions button,
.sbp-video-actions a {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sbp-video-actions button {
    background: #ef4444;
    color: #fff;
    border: none;
}

.sbp-video-actions button:hover {
    background: #dc2626;
}

.sbp-video-actions a {
    background: #3b82f6;
    color: #fff;
}

.sbp-video-actions a:hover {
    background: #2563eb;
}

/* Dashboard Header */
#sbp-dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

#sbp-dashboard-logo {
    width: auto;
    height: 70px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.5);
}

#sbp-dashboard-name {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
}

#sbp-dashboard-loader {
    font-size: 16px;
    color: #fff;
}

/* Analytics Section */
#sbp-analytics-data {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 15px;
}

.analytics-cards li {
    background: linear-gradient(135deg, #f0f9ff, #dbeafe);
    padding: 18px;
    border-radius: 12px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-cards li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.analytics-cards li div:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.analytics-cards li div:last-child {
    font-size: 0.85rem;
    color: #4b5563;
}

/* Processing Overlay */
#sbp-processing-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#sbp-processing-overlay span {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
    #sbp-videos-list {
        grid-template-columns: 1fr;
    }

    #sbp-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    #sbp-dashboard-logo {
        margin-bottom: 10px;
    }
}
