/**
 * Justin Document - Application Tracking Styles
 */

/* Account Wrapper */
.jds-account-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Login Box */
.jds-login-box {
    max-width: 400px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.jds-login-box h2 {
    margin: 0 0 30px;
    text-align: center;
    color: #1a2744;
}

.jds-login-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.jds-login-box input[type="text"],
.jds-login-box input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.jds-login-box input:focus {
    outline: none;
    border-color: #0d6efd;
}

.jds-login-box input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.jds-login-box input[type="submit"]:hover {
    background: #0b5ed7;
}

.jds-login-box .login-remember {
    margin-bottom: 20px;
}

.jds-login-links {
    text-align: center;
    margin-top: 20px;
}

.jds-login-links a {
    color: #0d6efd;
    text-decoration: none;
}

/* Account Header */
.jds-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.jds-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jds-user-info img {
    border-radius: 50%;
}

.jds-user-info h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #1a2744;
}

.jds-user-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.jds-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #dc3545;
    text-decoration: none;
    border: 1px solid #dc3545;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.jds-logout-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Section */
.jds-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #1a2744;
}

/* Empty State */
.jds-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.jds-empty-state i {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 16px;
}

.jds-empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Applications List */
.jds-applications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Application Card */
.jds-application-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.jds-application-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.jds-app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.jds-app-title h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #1a2744;
}

.jds-app-id {
    font-size: 13px;
    color: #6c757d;
}

.jds-app-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--status-color) 12%, transparent);
    color: var(--status-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.jds-app-status i {
    font-size: 12px;
}

/* Card Details */
.jds-app-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.jds-app-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jds-app-detail .label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jds-app-detail .value {
    font-size: 15px;
    color: #1a2744;
    font-weight: 500;
}

/* Notes */
.jds-app-notes {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.jds-app-notes strong {
    display: block;
    margin-bottom: 8px;
    color: #1a2744;
}

.jds-app-notes p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

/* Status Timeline */
.jds-status-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    position: relative;
}

.jds-status-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

.jds-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.jds-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    transition: all 0.3s ease;
}

.jds-timeline-step.complete .jds-timeline-dot {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.jds-timeline-step.current .jds-timeline-dot {
    background: #0d6efd;
    box-shadow: 0 0 0 2px #0d6efd, 0 0 0 6px rgba(13, 110, 253, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #0d6efd, 0 0 0 6px rgba(13, 110, 253, 0.2);
    }
    50% {
        box-shadow: 0 0 0 2px #0d6efd, 0 0 0 10px rgba(13, 110, 253, 0.1);
    }
}

.jds-timeline-label {
    font-size: 11px;
    color: #adb5bd;
    text-align: center;
    max-width: 70px;
    line-height: 1.3;
}

.jds-timeline-step.complete .jds-timeline-label {
    color: #28a745;
}

.jds-timeline-step.current .jds-timeline-label {
    color: #0d6efd;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .jds-account-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .jds-user-info {
        flex-direction: column;
    }
    
    .jds-app-header {
        flex-direction: column;
    }
    
    .jds-app-details {
        gap: 16px;
    }
    
    .jds-app-detail {
        flex: 1 1 calc(50% - 8px);
    }
    
    .jds-status-timeline {
        overflow-x: auto;
        padding-bottom: 10px;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .jds-timeline-step {
        min-width: 70px;
    }
}