/* Skeleton Loading Styles */

/* Base skeleton animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #E2E8F0 0%,
        #EDF2F7 50%,
        #E2E8F0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Hide actual content when loading */
.skeleton-loading .skeleton-hide {
    visibility: hidden;
}

/* Skeleton text */
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text-sm {
    height: 0.875em;
    width: 60%;
}

.skeleton-text-lg {
    height: 1.5em;
    width: 80%;
}

/* Dashboard specific skeletons */

/* Status card skeleton */
.skeleton-status-card {
    padding: 30px;
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.skeleton-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.skeleton-badge {
    width: 140px;
    height: 36px;
    border-radius: 20px;
}

.skeleton-title {
    width: 200px;
    height: 24px;
}

/* Progress bar skeleton */
.skeleton-progress-bar {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.skeleton-progress-steps {
    display: flex;
    justify-content: space-between;
}

.skeleton-step {
    text-align: center;
    flex: 1;
}

.skeleton-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.skeleton-step-label {
    width: 60px;
    height: 12px;
    margin: 0 auto;
}

/* Action card skeleton */
.skeleton-action-card {
    background: linear-gradient(135deg, #CBD5E0 0%, #A0AEC0 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-action-content {
    flex: 1;
}

.skeleton-action-title {
    width: 200px;
    height: 28px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.3);
}

.skeleton-action-desc {
    width: 300px;
    height: 16px;
    background: rgba(255,255,255,0.2);
}

.skeleton-action-btn {
    width: 120px;
    height: 48px;
    border-radius: 6px;
    background: rgba(255,255,255,0.4);
}

/* Info cards skeleton */
.skeleton-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.skeleton-info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.skeleton-card-title {
    width: 150px;
    height: 20px;
    margin-bottom: 16px;
}

.skeleton-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E2E8F0;
}

.skeleton-info-item:last-child {
    border-bottom: none;
}

.skeleton-info-label {
    width: 80px;
    height: 14px;
}

.skeleton-info-value {
    width: 120px;
    height: 14px;
}

/* Checklist skeleton */
.skeleton-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
}

.skeleton-checklist-item:last-child {
    border-bottom: none;
}

.skeleton-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.skeleton-check-text {
    width: 150px;
    height: 14px;
}

/* User info skeleton */
.skeleton-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-user-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-user-email {
    width: 180px;
    height: 16px;
}

.skeleton-user-folio {
    width: 140px;
    height: 13px;
}

/* Documents page skeleton */
.skeleton-doc-progress {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.skeleton-doc-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skeleton-doc-progress-text {
    width: 120px;
    height: 16px;
}

.skeleton-doc-progress-count {
    width: 50px;
    height: 16px;
}

.skeleton-doc-progress-bar {
    height: 10px;
    border-radius: 5px;
}

.skeleton-documents-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.skeleton-document-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #E2E8F0;
}

.skeleton-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.skeleton-doc-title {
    width: 200px;
    height: 20px;
    margin-bottom: 8px;
}

.skeleton-doc-desc {
    width: 280px;
    height: 14px;
}

.skeleton-doc-status {
    width: 80px;
    height: 28px;
    border-radius: 20px;
}

.skeleton-upload-area {
    border: 2px dashed #E2E8F0;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.skeleton-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.skeleton-upload-text {
    width: 250px;
    height: 16px;
}

.skeleton-upload-hint {
    width: 180px;
    height: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .skeleton-action-card {
        flex-direction: column;
        gap: 16px;
    }

    .skeleton-action-btn {
        width: 100%;
    }

    .skeleton-info-grid {
        grid-template-columns: 1fr;
    }

    .skeleton-avatar {
        width: 40px;
        height: 40px;
    }
}
