.dbc-portal-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 3rem;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #fff;
}

.dbc-portal-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #00f3ff;
}

.dbc-portal-dashboard {
    max-width: 960px;
    margin: 50px auto;
    padding: 0 5%;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem auto 0;
    max-width: 960px;
    width: 100%;
}

@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .dbc-portal-dashboard {
        margin: 20px auto;
        padding: 0 15px;
    }

    .portal-header-text h1 {
        font-size: 1.8rem !important;
    }

    .portal-card {
        padding: 1.5rem !important;
    }

    .admin-quick-nav {
        padding: 1rem !important;
        justify-content: center !important;
        text-align: center;
    }

    .admin-quick-nav div {
        justify-content: center !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .btn-glow, .btn-purple-outline, .btn-outline {
        width: 100% !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Fix image upload rows on mobile */
    .form-group div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .form-group div[style*="display: flex"] img {
        align-self: center;
    }

    /* Fix color picker row */
    .form-group div[style*="display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.05)"] {
        flex-direction: row !important; /* Keep picker and hex side by side if possible, or stack if too narrow */
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portal-header-text h1 {
        font-size: 1.5rem !important;
    }

    .portal-card h3 {
        font-size: 1.2rem;
    }

    .dbc-portal-container {
        padding: 2rem 1.5rem !important;
    }
}

.portal-card {
    padding: 2.5rem;
}

.portal-card h3 {
    margin-bottom: 1.5rem;
    color: #00f3ff;
}

#updateMsg {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* Reusing theme classes but ensuring they work in plugin context */
.btn-glow {
    background: #00f3ff;
    color: #000;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px #00f3ff;
    text-align: center;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px #00f3ff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
