@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --db-bg: #0f172a;
    --db-card-bg: rgba(30, 41, 59, 0.7);
    --db-accent: #38bdf8;
    --db-gold: #fbbf24;
    --db-text: #f8fafc;
    --db-text-muted: #94a3b8;
    --db-border: rgba(255, 255, 255, 0.1);
    --db-radius: 12px;
    --db-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.daily-blend-dashboard-container {
    font-family: 'Inter', sans-serif;
    background: var(--db-bg);
    color: var(--db-text);
    padding: 40px;
    border-radius: var(--db-radius);
    max-width: 1200px;
    margin: 40px auto;
    box-shadow: var(--db-shadow);
    min-height: 80vh;
}

/* Welcome Overlay */
.daily-blend-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
}

.welcome-content {
    text-align: center;
    animation: welcomePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.welcome-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

@keyframes welcomePop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.daily-blend-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--db-border);
    flex-wrap: wrap;
    gap: 20px;
}

.client-custom-logo {
    max-height: 50px;
    width: auto;
}

.daily-blend-brand h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.daily-blend-brand h1 span {
    color: var(--db-accent);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.daily-blend-nav {
    display: flex;
    gap: 15px;
}

.daily-blend-nav a {
    color: var(--db-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    position: relative;
}

.daily-blend-nav a:hover,
.daily-blend-nav a.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--db-accent);
}

.nav-bubble {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.daily-blend-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.daily-blend-logout {
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
}

.daily-blend-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.daily-blend-card {
    background: var(--db-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    padding: 25px;
    transition: transform 0.3s ease;
}

.daily-blend-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
}

.card-header h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--db-gold);
}

.daily-blend-list {
    list-style: none;
    padding: 0;
}

.daily-blend-list li {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--db-text-muted);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.approved {
    background: #10b981;
    color: #fff;
}

.status-badge.revisions {
    background: #f59e0b;
    color: #000;
}

.status-badge.pending {
    background: #38bdf8;
    color: #000;
}

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

.daily-blend-view-btn,
.daily-blend-quick-action {
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.daily-blend-view-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--db-border);
}

.daily-blend-quick-action.approve {
    background: #10b981;
    color: #fff;
}

.daily-blend-quick-action:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Campaign Progress */
.daily-blend-progress-container {
    margin-bottom: 30px;
    background: var(--db-card-bg);
    padding: 20px;
    border-radius: var(--db-radius);
    border: 1px solid var(--db-border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--db-accent), var(--db-gold));
    height: 100%;
    width: 0%;
    transition: width 1s ease-out;
}

/* Ratings Widget */
.daily-blend-rating-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--db-border);
}

.platform-label {
    display: block;
    font-size: 12px;
    color: var(--db-text-muted);
    margin-bottom: 5px;
}

.score {
    font-size: 24px;
    font-weight: 700;
    margin-right: 10px;
}

.stars {
    color: var(--db-gold);
    letter-spacing: 2px;
}

.review-link {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    color: var(--db-accent);
    text-decoration: none;
}

/* Settings Grid & Docs */
.daily-blend-settings-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.daily-blend-help-docs h3 {
    color: var(--db-gold);
    margin-top: 0;
}

.help-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--db-border);
}

.help-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--db-accent);
}

.help-body {
    font-size: 13px;
    color: var(--db-text-muted);
    line-height: 1.5;
}

.daily-blend-input,
.daily-blend-form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--db-border);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 10px;
}

.daily-blend-btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--db-accent);
    color: #000;
    font-weight: 600;
    transition: all 0.2s;
}

.daily-blend-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Single Creative View */
.single-creative-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-link {
    color: var(--db-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.creative-review-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.proof-image-wrap {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid var(--db-border);
}

.proof-image-wrap img {
    max-width: 100%;
    height: auto;
}

.creative-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-card,
.feedback-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--db-border);
    border-radius: 12px;
    padding: 20px;
}

.action-card h3,
.feedback-card h3 {
    font-size: 16px;
    margin-top: 0;
    color: var(--db-gold);
}

.approve-btn {
    width: 100%;
    font-size: 16px;
    padding: 15px;
}

/* Feedback/Comments */
.daily-blend-comments {
    margin-top: 20px;
}

#commentform textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--db-border);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    margin-bottom: 10px;
}

/* Rating Widget (Reputation) */
.daily-blend-rating-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--db-border);
}

.platform-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.platform-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--db-gold);
}

.review-count {
    font-size: 11px;
    color: var(--db-text-muted);
}

.score-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.score-row .score {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.score-row .stars {
    color: #fbbf24;
    font-size: 16px;
    letter-spacing: 2px;
}

.review-link {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--db-accent);
    text-decoration: none;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reputation Grid */
.reputation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rating-mini-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--db-border);
    text-align: center;
}

.mini-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: var(--db-text-muted);
    margin-bottom: 5px;
}

.mini-score {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--db-accent);
    margin-bottom: 8px;
}

.rating-mini-item a {
    font-size: 9px;
    color: #fff;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.rating-mini-item a:hover {
    opacity: 1;
}

/* Admin Reputation Pills */
.rep-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 4px;
    color: #fff;
}

.rep-pill.google {
    background: #4285F4;
}

.rep-pill.fb {
    background: #1877F2;
}

.rep-pill.yelp {
    background: #FF1A1A;
}

.comment-body {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    border-left: 3px solid var(--db-accent);
}

@media (max-width: 900px) {

    .daily-blend-settings-grid,
    .creative-review-grid {
        grid-template-columns: 1fr;
    }
}