/**
 * SWFT NSI Candidate Dashboard Styles
 */

/* Dashboard Container */
.swft-candidate-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Header */
.swft-dashboard-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.swft-dashboard-header h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
}

.swft-dashboard-meta {
    color: #666;
    font-size: 14px;
}

/* Dashboard Layout */
.swft-dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .swft-dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* Navigation */
.swft-dashboard-nav {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.swft-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swft-nav-menu li {
    margin-bottom: 5px;
}

.swft-nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.swft-nav-menu a:hover {
    background: #f0f0f0;
    color: #0073aa;
}

.swft-nav-menu li.active a {
    background: #0073aa;
    color: #fff;
}

.swft-nav-menu .dashicons {
    margin-right: 10px;
    font-size: 20px;
}

/* Main Content */
.swft-dashboard-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Widgets */
.swft-widget {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.swft-widget h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

/* Status Widget */
.swft-status-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.swft-status-widget h3 {
    color: #fff;
}

.status-indicator {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
}

.status-progress {
    background: rgba(255,255,255,0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    background: #fff;
    transition: width 0.5s ease;
}

.status-message {
    font-size: 14px;
    opacity: 0.9;
}

/* Widget Grid */
.swft-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Stat Widget */
.swft-stat-widget {
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.swft-stat-widget h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
}

/* Activity Timeline */
.swft-activity-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swft-activity-timeline li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.swft-activity-timeline li:last-child {
    border-bottom: none;
}

.activity-date {
    color: #666;
    font-size: 13px;
}

.activity-description {
    font-weight: 500;
}

/* Status Timeline */
.swft-status-timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 30px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #e0e0e0;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.timeline-item.current .timeline-marker {
    background: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.timeline-date {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px 0;
}

.timeline-description {
    margin: 0;
    color: #666;
}

/* Assignments */
.swft-assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.swft-assignment-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
}

.swft-assignment-card h3 {
    margin-top: 0;
    color: #0073aa;
}

.assignment-date,
.assignment-status,
.assignment-contact {
    margin: 5px 0;
    font-size: 14px;
}

/* No Content States */
.swft-no-assignments {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Access Denied */
.swft-access-denied {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.swft-access-denied p {
    margin: 10px 0;
}

/* Buttons */
.swft-profile-actions {
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover {
    background: #005a87;
    color: #fff;
}

.button-primary {
    background: #0073aa;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .swft-dashboard-nav {
        margin-bottom: 20px;
    }
    
    .swft-nav-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .swft-nav-menu li {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .swft-widget-grid {
        grid-template-columns: 1fr;
    }
}

/* GravityView Integration */
.swft-dashboard-content .gv-container {
    margin-top: 20px;
}

.swft-dashboard-content .gv-table-view {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.swft-dashboard-content .gv-table-view th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Edit Profile Modal Support */
.swft-edit-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.swft-edit-profile-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swft-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
} 