/* Dashboard Modal - Funky Frosted Glass Design */

.dashboard-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    cursor: pointer;
    animation: fadeIn 0.3s ease-out;
}

.dashboard-modal-content {
    position: relative;
    width: 96%;
    height: 96%;
    margin: 2% auto;
    background: rgba(15, 30, 60, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 150, 255, 0.3);
    cursor: default;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: dashboardFadeIn 0.4s ease-out;
}

/* Simple Tech Background */
.dashboard-funky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
    background:
        linear-gradient(135deg, rgba(0, 40, 80, 0.8) 0%, rgba(0, 20, 40, 0.9) 100%),
        linear-gradient(45deg, transparent 40%, rgba(0, 150, 255, 0.05) 50%, transparent 60%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="%23001122"/><circle cx="30" cy="30" r="1" fill="%23003366"/><circle cx="10" cy="10" r="1" fill="%23003366"/><circle cx="50" cy="50" r="1" fill="%23003366"/></svg>');
    background-size: cover, 100% 100%, 60px 60px;
}

/* Clean fade-in animation for modal */
@keyframes dashboardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Header */
.dashboard-modal-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-info h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-subtitle {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-weight: 400;
}

.dashboard-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Dashboard Content Area */
.dashboard-content-area {
    position: relative;
    z-index: 10;
    flex: 1;
    padding: 30px;
    overflow: auto;
}

/* Dashboard Grid View */
.dashboard-grid-view {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-funky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    height: 80%;
    min-height: 500px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Simple Dashboard Cards */
.dashboard-funky-card {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* No shimmer effect - performance focused */

.dashboard-funky-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 150, 255, 0.3);
}

/* Hover state handled above */

.card-frosted-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dashboard View Content */
.dashboard-view-content {
    height: 100%;
}

.dashboard-back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dashboard-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

.view-content-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 25px;
    height: calc(100% - 80px);
    overflow: auto;
    backdrop-filter: blur(15px);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(3px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-funky-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        width: 95%;
        height: 80%;
        gap: 20px;
    }

    .dashboard-modal-header {
        padding: 20px;
    }

    .dashboard-info h3 {
        font-size: 1.6rem;
    }

    .dashboard-content-area {
        padding: 20px;
    }

    .card-icon {
        font-size: 2.8rem;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

/* Mid-mobile range fix: prevent 2-column card clipping between 481px and 560px */
@media (min-width: 481px) and (max-width: 560px) {
    .dashboard-grid-view {
        align-items: flex-start;
    }

    .dashboard-content-area {
        padding: 16px;
    }

    .dashboard-funky-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-auto-rows: minmax(158px, auto);
        height: auto;
        min-height: 0;
        gap: 14px;
        width: 100%;
        padding: 0;
    }

    .dashboard-funky-card {
        min-height: 158px;
    }

    .card-frosted-content {
        padding: 14px 12px;
    }

    .card-icon {
        font-size: 2.25rem;
        margin-bottom: 8px;
    }

    .card-title {
        font-size: 1.02rem;
        line-height: 1.18;
        margin-bottom: 4px;
    }

    .card-description {
        font-size: 0.72rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .dashboard-funky-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: minmax(96px, auto);
        height: auto;
        min-height: 0;
        gap: 12px;
        padding: 0 4px;
    }

    .dashboard-grid-view {
        align-items: flex-start;
    }

    .dashboard-funky-card {
        min-height: 96px;
    }

    .card-frosted-content {
        padding: 14px 12px;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .card-title {
        font-size: 1.05rem;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .card-description {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .dashboard-modal-content {
        width: 98%;
        height: 98%;
        margin: 1% auto;
    }
}

@media (min-width: 321px) and (max-width: 380px) {
    .dashboard-content-area {
        padding: 12px 10px;
    }

    .dashboard-funky-grid {
        grid-auto-rows: minmax(92px, auto);
        gap: 10px;
    }

    .dashboard-funky-card {
        min-height: 92px;
    }

    .card-frosted-content {
        padding: 12px 10px;
    }

    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .card-title {
        font-size: 0.96rem;
        line-height: 1.15;
        margin-bottom: 2px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dashboard-funky-card:nth-child(3) .card-description,
    .dashboard-funky-card:nth-child(4) .card-description,
    .dashboard-funky-card:nth-child(5) .card-description {
        display: none;
    }

    .dashboard-funky-card:nth-child(3) .card-title,
    .dashboard-funky-card:nth-child(4) .card-title,
    .dashboard-funky-card:nth-child(5) .card-title {
        margin-bottom: 0;
    }
}

@media (max-width: 320px) {
    .dashboard-modal-header {
        padding: 14px 14px;
        align-items: flex-start;
    }

    .dashboard-info h3 {
        font-size: 1.85rem;
        line-height: 1.1;
    }

    .dashboard-modal .dashboard-subtitle {
        font-size: 0.88rem !important;
        line-height: 1.2;
        margin-top: 4px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .dashboard-content-area {
        padding: 12px 10px;
    }

    .dashboard-funky-grid {
        grid-auto-rows: minmax(84px, auto);
        gap: 10px;
    }

    .dashboard-funky-card {
        min-height: 84px;
    }

    .card-frosted-content {
        padding: 12px 10px;
    }

    .card-icon {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .card-description {
        display: none;
    }
}

/* Site Settings Dashboard Styles */
.settings-dashboard {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.settings-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric-card {
    background: rgba(15, 40, 80, 0.6);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 150, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.metric-card:hover {
    border-color: rgba(0, 150, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 150, 255, 0.1);
}

.metric-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 150, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.metric-content h4 {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.metric-content {
    min-width: 0;
    flex: 1;
}

.metric-value {
    color: #00aaff;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 5px 0;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.settings-btn {
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid rgba(0, 150, 255, 0.4);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.settings-btn:hover {
    background: rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 150, 255, 0.6);
    transform: translateY(-1px);
}

/* Contact Center & PDF Management Styles */
.contact-center-dashboard {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.center-description {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

.pdf-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pdf-upload-card {
    background: rgba(15, 40, 80, 0.6);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 150, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdf-upload-card:hover {
    border-color: rgba(0, 150, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 150, 255, 0.15);
    background: rgba(15, 40, 80, 0.7);
}

.pdf-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.pdf-upload-card h4 {
    color: #ffffff;
    margin: 10px 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.pdf-upload-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 5px 0 15px 0;
    line-height: 1.3;
}

.upload-label {
    background: rgba(0, 150, 255, 0.2);
    color: #00aaff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 150, 255, 0.3);
    transition: all 0.3s ease;
}

.pdf-upload-card:hover .upload-label {
    background: rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 150, 255, 0.5);
}

.contact-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(15, 40, 80, 0.6);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 150, 255, 0.2);
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 150, 255, 0.4);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    color: #00aaff;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 8px 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .settings-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }

    .pdf-upload-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .settings-actions {
        flex-direction: column;
    }

    .contact-stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 560px) {

    .settings-dashboard,
    .portfolio-builder-dashboard {
        padding: 14px;
    }

    .settings-metrics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .metric-card {
        padding: 12px;
        gap: 10px;
    }

    .metric-icon {
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
    }
}

/* Portfolio Builder Dashboard Styles */
.portfolio-builder-dashboard {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.builder-description {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Portfolio Controls */
.portfolio-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.layout-switcher {
    display: flex;
    gap: 8px;
}

.layout-btn {
    background: rgba(15, 40, 80, 0.6);
    border: 1px solid rgba(0, 150, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.layout-btn.active,
.layout-btn:hover {
    background: rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 150, 255, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
}

.category-filter {
    background: rgba(15, 40, 80, 0.6);
    border: 1px solid rgba(0, 150, 255, 0.3);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.preview-btn,
.add-project-btn {
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid rgba(0, 150, 255, 0.4);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    margin-left: 10px;
}

.preview-btn:hover,
.add-project-btn:hover {
    background: rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 150, 255, 0.6);
    transform: translateY(-1px);
}

/* Portfolio Builder Section */
.portfolio-builder-section {
    margin: 30px 0;
}

.portfolio-builder-section h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.grid-instruction {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Draggable Portfolio Grid */
.draggable-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    min-height: 300px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.project-slot {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 150, 255, 0.2);
    background: rgba(15, 40, 80, 0.6);
    backdrop-filter: blur(10px);
}

.project-slot:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.4);
}

.project-slot:active {
    cursor: grabbing;
}

.project-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-slot:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-slot:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.project-category {
    font-size: 0.8rem;
    color: #00aaff;
    background: rgba(0, 150, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 8px;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.3s ease;
}

.drag-handle:hover {
    color: #00aaff;
    background: rgba(0, 150, 255, 0.2);
}

/* Empty Slot */
.empty-slot {
    border: 2px dashed rgba(0, 150, 255, 0.4);
    background: rgba(15, 40, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-slot:hover {
    border-color: rgba(0, 150, 255, 0.6);
    background: rgba(15, 40, 80, 0.5);
    transform: translateY(-2px);
}

.empty-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.plus-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: rgba(0, 150, 255, 0.7);
}

.empty-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Customization */
.portfolio-customization {
    margin: 30px 0;
}

.portfolio-customization h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.custom-card {
    background: rgba(15, 40, 80, 0.6);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 150, 255, 0.2);
    transition: all 0.3s ease;
}

.custom-card:hover {
    border-color: rgba(0, 150, 255, 0.4);
    transform: translateY(-2px);
}

.custom-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.custom-card h5 {
    color: #ffffff;
    margin: 10px 0;
    font-size: 1rem;
}

.color-options {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.color-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.color-dot.active,
.color-dot:hover {
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-btn {
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid rgba(0, 150, 255, 0.4);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.custom-btn:hover {
    background: rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 150, 255, 0.6);
}

.spacing-control {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.spacing-slider {
    flex: 1 1 100%;
    width: 100%;
    height: 4px;
    background: rgba(0, 150, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.spacing-value {
    display: block;
    width: 100%;
    text-align: right;
    color: #00aaff;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 0;
}

.font-selector {
    background: rgba(15, 40, 80, 0.6);
    border: 1px solid rgba(0, 150, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 10px;
}

/* Portfolio Statistics */
.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Layout variations */
.layout-masonry {
    grid-template-rows: repeat(3, auto);
}

.layout-carousel {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.layout-carousel .project-slot {
    scroll-snap-align: center;
}

/* Responsive Portfolio Builder */
@media (max-width: 768px) {
    .draggable-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 15px;
    }

    .portfolio-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        align-items: center;
    }

    .customization-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .draggable-portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }

    .portfolio-controls {
        gap: 15px;
    }

    .control-group {
        width: 100%;
        align-items: stretch;
    }

    .layout-switcher {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch;
    }

    .layout-switcher .layout-btn:nth-child(3) {
        grid-column: 1 / -1;
    }

    .layout-btn {
        width: 100%;
        min-width: 0;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .category-filter {
        width: 100%;
    }

    .preview-btn,
    .add-project-btn {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 380px) {
    .portfolio-builder-dashboard {
        padding: 12px;
    }

    .portfolio-builder-section h4 {
        font-size: 1rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
}