/* ========== SYNC & BACKUP STYLES ========== */

/* Sync Status Indicator */
.sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
}

.sync-status:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.sync-status.synced {
    background-color: rgba(121, 176, 97, 0.1);
    color: var(--primary-green);
}

.sync-status.not-synced {
    background-color: rgba(102, 102, 102, 0.1);
    color: var(--text-gray);
}

/* Sync Modal Sections */
.sync-section {
    margin-bottom: 1.5rem;
}

.sync-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.sync-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sync-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.sync-info {
    text-align: center;
}

/* Sync Code Display */
.sync-code-display {
    margin: 1rem 0;
}

.sync-code-display label {
    display: block;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* Enhanced Prominent Sync Code Display */
.sync-code-highlight {
    background: linear-gradient(135deg, rgba(121, 176, 97, 0.1) 0%, rgba(121, 176, 97, 0.05) 100%);
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1rem 0;
}

.sync-code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.sync-code-header i {
    font-size: 1.25rem;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light-gray);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.code-box-prominent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-green);
    margin-bottom: 1rem;
}

.sync-code-large {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-green);
    letter-spacing: 0.15em;
}

.sync-code-extra-large {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-green);
    letter-spacing: 0.2em;
    flex: 1;
}

.btn-copy-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-copy-code:hover {
    background: var(--primary-green-dark);
    transform: translateY(-1px);
}

.sync-code-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.sync-code-warning i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.sync-code-warning strong {
    color: var(--text-black);
}

.save-tips {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.sync-code-display-large {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light-gray);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border: 2px solid var(--primary-green);
}

.sync-code-huge {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-green);
    letter-spacing: 0.2em;
}

/* Sync Code Input */
.sync-code-input {
    width: 100%;
    padding: 1rem;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 0.5em;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 1rem 0;
    transition: all var(--transition-base);
}

.sync-code-input:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(121, 176, 97, 0.1);
}

/* Small Text */
.small-text {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Modal Sizes */
.modal-small {
    max-width: 400px;
}

.modal-small .modal-content {
    width: 100%;
}

/* Icon Button Small */
.icon-btn-small {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-small:hover {
    background: var(--bg-light-gray);
    color: var(--primary-green);
}

/* Sync Modal Specific */
.sync-modal .modal-content {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Sync Elements */
@media (max-width: 768px) {
    .sync-code-large {
        font-size: 1.5rem;
    }
    
    .sync-code-huge {
        font-size: 2rem;
    }
    
    .sync-code-input {
        font-size: 1.5rem;
    }
    
    .sync-status {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .sync-status span {
        display: none;
    }
    
    .sync-status i {
        margin: 0;
    }
}

/* Success/Error States */
.sync-success {
    padding: 1rem;
    background: rgba(121, 176, 97, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: var(--radius-md);
    color: var(--primary-green);
    font-weight: 500;
    text-align: center;
    margin: 1rem 0;
}

.sync-error {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: var(--radius-md);
    color: #ef4444;
    font-weight: 500;
    text-align: center;
    margin: 1rem 0;
}

/* Loading State */
.sync-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-gray);
}

.sync-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
