/* Dashboard Welcome Section */
.dashboard-welcome-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.welcome-message h2 {
    color: #229e61;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
}

.welcome-message p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #229e61;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon i {
    color: #fff;
    font-size: 20px;
}

.stat-content h3 {
    color: #229e61;
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 600;
}

.stat-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Recent Applications Section */
.dashboard-recent-applications {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.dashboard-recent-applications h3 {
    color: #229e61;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
}

.recent-applications-list {
    display: grid;
    gap: 15px;
}

.application-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    gap: 15px;
}

.job-title a {
    color: #229e61;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.job-title a:hover {
    color: #1a7a4a;
}

.company-name {
    color: #666;
    font-size: 14px;
}

.application-date {
    color: #666;
    font-size: 14px;
}

.application-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-transform: capitalize;
}

.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-reviewing {
    background: #fff3e0;
    color: #f57c00;
}

.status-shortlisted {
    background: #e8f5e9;
    color: #229e61;
}

.status-rejected {
    background: #ffebee;
    color: #d32f2f;
}

/* View All Applications Button - More specific selector */
.woocommerce-MyAccount-content .dashboard-recent-applications .view-all-link .button.view-all-applications,
.woocommerce-MyAccount-content .view-all-link .button.view-all-applications,
.dashboard-recent-applications .view-all-link .button.view-all-applications {
    background-color: #229e61 !important;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s ease;
    border: none;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.woocommerce-MyAccount-content .dashboard-recent-applications .view-all-link .button.view-all-applications:hover,
.woocommerce-MyAccount-content .view-all-link .button.view-all-applications:hover,
.dashboard-recent-applications .view-all-link .button.view-all-applications:hover {
    background-color: #1a7a4a !important;
    color: #fff !important;
}

/* Quick Actions Section */
.dashboard-quick-actions {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dashboard-quick-actions h3 {
    color: #229e61;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #229e61;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.action-box:hover {
    background: #229e61;
    color: #fff;
    transform: translateY(-2px);
}

.action-box i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.action-box span {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .application-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-box {
        padding: 15px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon i {
        font-size: 16px;
    }

    .stat-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome-section,
    .dashboard-recent-applications,
    .dashboard-quick-actions {
        padding: 20px;
    }
}

/* Dashboard Content Spacing Fix */
.woocommerce-MyAccount-content {
    margin-top: 20px;
}

#apus-main-content {
    padding-top: 20px;
}

/* Fix for My Account page layout */
.woocommerce-account {
    position: relative;
    z-index: 1;
}

.woocommerce-account .woocommerce-MyAccount-content {
    position: relative;
    z-index: 2;
}

/* Ensure proper header behavior on My Account pages */
.woocommerce-account #apus-header {
    position: relative;
    z-index: 10;
}

.woocommerce-account #apus-header-mobile {
    position: relative;
    z-index: 10;
}

/* Force hide mobile header on desktop screens */
@media (min-width: 992px) {
    #apus-header-mobile,
    .header-mobile {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Force show desktop header on desktop screens */
@media (min-width: 992px) {
    #apus-header,
    .apus-header {
        display: block !important;
        visibility: visible !important;
    }
}

/* Show mobile header only on mobile screens */
@media (max-width: 991px) {
    #apus-header-mobile,
    .header-mobile {
        display: block !important;
        visibility: visible !important;
    }
    
    #apus-header,
    .apus-header {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Fix mobile header positioning on dashboard */
@media (max-width: 991px) {
    .woocommerce-account #apus-header-mobile {
        position: relative;
        z-index: 10;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        margin-top: 10px;
    }
}

/* Dashboard specific fixes */
.woocommerce-account .dashboard-welcome-section {
    margin-top: 0;
}

.woocommerce-account .dashboard-stats-grid {
    margin-top: 20px;
} 