/* Parallax Dashboard Section CSS */

.parallax-container {

    background-size: 87.7686vw 87.7686vw;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-size 0.3s ease;
    border-radius: 10px;
}

.parallax-background {

    background-color: #c3cecf;
    width: 100%;
    border-radius: 10px;
    height: 100%;
    min-height: 600px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .parallax-container {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .parallax-container {
        min-height: 400px;
    }
}

/* Dashboard image styling */
.parallax-container .img-fluid {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.parallax-container .img-fluid:hover {
   
}

/* Overlay for better contrast */
.parallax-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Ensure content is above overlay */
.parallax-container .container {
    position: relative;
    z-index: 3;
    padding: 0px 60px;
}

/* Animation for dashboard appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parallax-container .img-fluid {
    animation: fadeInUp 0.8s ease-out;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .parallax-container::before {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* Dashboard Boxes Layout */
.dashboard-boxes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.dashboard-header {
    grid-column: 1 / -1; /* Span full width */
}

.dashboard-box {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.dashboard-header {
    background-image: url('https://www.tenantly.io/wp-content/uploads/2025/08/header.png');
    height: 203px;
}

.dashboard-analytics {
    background-image: url('https://www.tenantly.io/wp-content/uploads/2025/08/analytics.png');
    height: 371px;
}

.dashboard-share {
    background-image: url('https://www.tenantly.io/wp-content/uploads/2025/08/share.png');
    height: 371px;
}


.dashboard-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.dashboard-box-content {
    height: 100%;
}

/* Header Box */
.dashboard-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.user-avatar {
    position: relative;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border: 2px solid white;
    border-radius: 50%;
}

.user-details h6 {
    margin: 0;
    font-weight: 600;
}

.dashboard-search {
    margin-bottom: 20px;
}

.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input input {
    padding-left: 40px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 40px;
}

.dashboard-icons {
    display: flex;
    gap: 12px;
}

.icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.icon-wrapper:hover {
    background: #e9ecef;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #fd7e14;
    border-radius: 50%;
}

/* Analytics Box */
.analytics-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analytics-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: background-color 0.3s ease;
}

.analytics-item:hover {
    background: #e9ecef;
}

.item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-content h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
}

/* Share Project Box */
.radar-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.radar-chart {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-polygon {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.7;
}

.chart-orange {
    background: linear-gradient(45deg, #fd7e14, #ff8c42);
    transform: scale(0.8);
}

.chart-purple {
    background: linear-gradient(45deg, #6f42c1, #8e44ad);
    transform: scale(0.6);
}

.chart-axes {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axis-label {
    position: absolute;
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
}

.axis-label:nth-child(1) { top: 10px; left: 50%; transform: translateX(-50%); }
.axis-label:nth-child(2) { bottom: 10px; left: 50%; transform: translateX(-50%); }
.axis-label:nth-child(3) { left: 10px; top: 50%; transform: translateY(-50%); }
.axis-label:nth-child(4) { right: 10px; top: 50%; transform: translateY(-50%); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-boxes-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
    }
    
    .dashboard-header {
        grid-column: 1; /* Reset to single column on mobile */
        height: 160px;
    }
    
    .dashboard-analytics {
        height: 300px;
    }
    
    .dashboard-share {
        height: 300px;
    }
    
    .dashboard-box {
        padding: 16px;
    }
}

@media (max-width: 480px) {

    .parallax-container .container {
        position: relative;
        z-index: 3;
        padding: 0px 10px;
    }


    .dashboard-boxes-container {
        gap: 12px;
    }
    
    .dashboard-header {
        height: 50px;
    }
    
    .dashboard-analytics {
       height: 245px;
    }
    
    .dashboard-share {
       height: 245px;
    }
    
    .dashboard-box {
        padding: 12px;
    }
}
