.dashboard-page {
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.35rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
}

.dashboard-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 2rem 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow: var(--shadow-lg);
}

.dashboard-card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--gradient-1);
    color: #fff;
    flex-shrink: 0;
}

.dashboard-card-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.dashboard-card h2 {
    font-size: 1.9rem;
    color: var(--text-primary);
}

.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
    max-width: 960px; /* Lock the panel width */
    margin-left: auto;
    margin-right: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h2 {
    font-size: 1.3rem;
}

.panel-chip {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 93, 58, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
}

.feedback-empty-state {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: color-mix(in srgb, var(--bg-darker) 78%, transparent);
}

.feedback-empty-state i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.feedback-empty-state p {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feedback-empty-state small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feedback-list {
    max-height: 400px; /* Adjust this height based on your design needs */
    overflow-y: auto;
    padding-right: 10px; /* Space for the custom scrollbar */
}

/* subtle scrollbar */
.feedback-list::-webkit-scrollbar {
    width: 10px;
}
.feedback-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border-radius: 8px;
}

.feedback-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    background: color-mix(in srgb, var(--bg-darker) 82%, transparent);
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.feedback-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.feedback-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.feedback-status-badge.is-approved {
    background: rgba(47, 93, 58, 0.16);
    color: #bdf4cc;
    border-color: rgba(47, 93, 58, 0.4);
}

.feedback-status-badge.is-pending {
    background: rgba(220, 142, 43, 0.16);
    color: #ffe3b3;
    border-color: rgba(220, 142, 43, 0.4);
}

.feedback-meta {
    display: grid;
    gap: 0.15rem;
}

.feedback-name {
    color: var(--text-primary);
    font-weight: 700;
}

.feedback-email {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.feedback-date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.feedback-message {
    color: var(--text-primary);
    line-height: 1.55;
    white-space: pre-wrap;
    margin: 0;
}

.feedback-delete-btn {
    border: 1px solid rgba(225, 107, 74, 0.55);
    background: rgba(225, 107, 74, 0.16);
    color: #ffd8cc;
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.feedback-approve-btn {
    border: 1px solid rgba(47, 93, 58, 0.55);
    background: rgba(47, 93, 58, 0.16);
    color: #d5ffe2;
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.feedback-approve-btn:hover {
    background: rgba(47, 93, 58, 0.28);
    border-color: rgba(47, 93, 58, 0.9);
    transform: translateY(-1px);
}

.feedback-approve-btn:disabled,
.feedback-delete-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.feedback-delete-btn:hover {
    background: rgba(225, 107, 74, 0.26);
    border-color: rgba(225, 107, 74, 0.8);
    transform: translateY(-1px);
}

/* =========================================================================
   SHOWCASE MANAGEMENT STYLES (REDESIGN)
   ========================================================================= */

/* The Form Container */
.showcase-admin-form {
   background: color-mix(in srgb, var(--bg-darker) 40%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.showcase-admin-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.showcase-admin-form .form-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.custom-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Custom Drag & Drop Style Box */
.file-upload-box {
    position: relative;
    border: 2px dashed rgba(230, 200, 122, 0.3);
    border-radius: 12px;
    background: rgba(17, 28, 25, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 140px;
    text-align: center;
    padding: 1rem;
    transition: all var(--transition-fast);
}

.file-upload-box:hover { border-color: var(--primary); }

.file-upload-box i {
    font-size: 2.5rem;
    color: var(--accent);
}

.file-upload-box span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    padding: 0 1rem;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.patch-edit-btn {
    border: 1px solid rgba(230, 200, 122, 0.55);
    background: rgba(230, 200, 122, 0.16);
    color: #ffdd5b; /* Using your primary golden color */
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.patch-edit-btn:hover {
    background: rgba(230, 200, 122, 0.26);
    border-color: rgba(230, 200, 122, 0.8);
    transform: translateY(-1px);
}

/* Action Button Container */
.showcase-admin-form .form-actions {
    display: flex;
    justify-content: flex-end; /* Pushes the button to the right */
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.showcase-admin-form .form-actions .btn {
    min-width: 220px;
}

/* Preview List Styles */
.showcase-item-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.showcase-thumb-preview {
    width: 120px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.showcase-details {
    flex: 1;
}
@media (max-height: 800px) {
    .feedback-list {
        max-height: 250px; /* Shrink list height on shorter screens */
    }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .showcase-admin-form .form-grid { grid-template-columns: 1fr; }
    .showcase-admin-form .form-actions {
        justify-content: center;
    }
    .showcase-admin-form .form-actions .btn {
        width: 100%;
    }
    .showcase-item-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .showcase-item-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-header,
    .dashboard-shell {
        max-width: 960px; 
        margin: 0 auto; 
        padding: 2rem;
    }

    .dashboard-shell {
        padding-top: 10rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feedback-empty-state {
        padding: 1.5rem 1rem;
    }

    .feedback-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feedback-item-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        gap: 1rem;
    }

    .dashboard-shell {
        padding-top: 2rem;
    }

    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-card,
    .dashboard-panel {
    display: flex;
    flex-direction: column;
    max-height: 550px; /* Panel container limit */
    }

    .dashboard-card h2 {
        font-size: 1.55rem;
    }

    .feedback-item {
        padding: 0.9rem;
    }

    .feedback-item-actions {
        gap: 0.4rem;
    }

    .feedback-approve-btn,
    .feedback-delete-btn {
        padding: 0.42rem 0.65rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-chip {
        align-self: flex-start;
    }
}
