/*
 * LEGACY STYLESHEET - Kept for backwards compatibility
 * Primary styles are in enterprise-style.css
 * Conflicting card/component styles have been commented out
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-tertiary);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

h1 {
    color: var(--text-primary);
    font-size: 2rem;
}

.status-badge {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-radius: 25px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #10b981;
}

.status-dot.running {
    background: #f59e0b;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Card styles moved to enterprise-style.css for consistency */
/* .card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card h2 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
} */

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565, #c53030);
    color: white;
}

.btn-secondary {
    background: var(--border-color);
    color: #4a5568;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.snapshots-list {
    max-height: 300px;
    overflow-y: auto;
}

.snapshot-item {
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.snapshot-item:hover {
    background: var(--border-color);
}

.snapshot-info {
    flex: 1;
}

.snapshot-id {
    font-family: monospace;
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 5px;
}

.snapshot-date {
    color: #718096;
    font-size: 0.9rem;
}

.snapshot-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: #cbd5e0;
}

.progress-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.log-viewer {
    background: #1a202c;
    color: #10b981;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.log-message {
    margin-bottom: 5px;
    line-height: 1.5;
}

.log-message.error {
    color: #f56565;
}

.loading {
    text-align: center;
    color: #718096;
    padding: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.85rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.path-list {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 15px;
}

.path-item {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.9rem;
}

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

/* Restore Modal Styles */
.modal-large {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.restore-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.backup-list {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: var(--bg-tertiary);
}

.backup-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--card-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.backup-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.backup-item.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #764ba2;
}

.backup-id {
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 5px;
}

.backup-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.backup-host {
    font-size: 0.85rem;
    opacity: 0.8;
}

.selected-backup {
    margin-top: 15px;
    padding: 10px;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 0.95rem;
}

.restore-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #4a5568;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    padding: 20px 0;
}

.tab-content h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.warning-text {
    color: #ed8936;
    background: rgba(245, 158, 11, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
}

.danger-text {
    color: #e53e3e;
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.no-backups {
    text-align: center;
    color: #718096;
    padding: 40px;
    font-style: italic;
}

/* File Browser Styles */
.file-browser-section {
    margin-bottom: 20px;
}

.browser-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.selection-info {
    margin-left: auto;
    color: #718096;
    font-weight: 600;
}

.file-tree-browser {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    margin-bottom: 15px;
}

.tree-header {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.tree-header input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.file-tree-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.tree-node {
    margin-bottom: 2px;
}

.tree-node-header, .tree-file {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
}

.tree-node-header:hover, .tree-file:hover {
    background: var(--bg-tertiary);
}

.tree-label {
    color: var(--text-primary);
}

.tree-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

.tree-expander {
    width: 20px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    color: #718096;
}

.tree-icon {
    margin-right: 6px;
    font-size: 1.1rem;
}

.tree-name {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.tree-size {
    color: #718096;
    font-size: 0.85rem;
    margin-left: 10px;
}

.tree-children {
    margin-left: 10px;
}

.selected-files-section {
    margin-top: 15px;
}

.selected-files-list {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: var(--bg-tertiary);
    max-height: 150px;
    overflow-y: auto;
}

.no-selection {
    color: #718096;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.selected-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: var(--card-bg);
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-path {
    font-family: monospace;
    font-size: 0.85rem;
    color: #4a5568;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-btn {
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #f56565;
}

.manual-entry {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background: var(--bg-tertiary);
}

.manual-entry summary {
    cursor: pointer;
    color: #718096;
    font-weight: 600;
    user-select: none;
}

.manual-entry summary:hover {
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .stats-content {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .modal-large {
        width: 95%;
        max-width: none;
    }

    .restore-tabs {
        flex-wrap: wrap;
    }
}
/* ========================================
   BACKUP PROFILES STYLES
   ======================================== */

/* Profile Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.template-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.template-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.template-info {
    flex: 1;
}

.template-info h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.template-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.template-action {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.profile-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.profile-card.disabled {
    opacity: 0.6;
}

.profile-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.profile-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.profile-title h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-icon.btn-danger:hover {
    background: #f44336;
    border-color: #f44336;
    color: white;
}

.profile-body {
    padding: 20px;
}

.profile-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.detail-item i {
    width: 24px;
    color: var(--primary-color);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.profile-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-stats label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-stats span {
    color: var(--text-primary);
    font-weight: 500;
}

.status-success {
    color: #4caf50 !important;
}

.status-failure {
    color: #f44336 !important;
}

/* Wizard Modal - Professional Design */
.wizard-modal {
    max-width: 850px;
    width: 92%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard-modal .modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 28px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.wizard-modal .modal-header > h2 {
    flex: 1;
    margin-right: 50px; /* Make room for close button */
}

.wizard-modal .modal-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-modal .modal-header h2 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.wizard-step-indicator {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-right: 65px; /* Space for close button */
}

.wizard-modal .modal-body {
    padding: 35px 40px 25px 40px;
    min-height: 420px;
}

/* Override enterprise-style.css wizard-step for profile wizard */
.wizard-modal .wizard-step,
#wizard-step-content .wizard-step {
    padding: 0 !important;
    display: block !important;
    flex: none !important;
    align-items: initial !important;
    justify-content: initial !important;
    cursor: default !important;
    animation: stepFadeIn 0.4s ease-out;
}

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

.wizard-modal .wizard-step h3,
#wizard-step-content .wizard-step h3 {
    color: var(--text-primary);
    margin-bottom: 28px;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: block !important;
    width: 100%;
}

.wizard-modal .wizard-step h4,
#wizard-step-content .wizard-step h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
    display: block !important;
    width: 100%;
}

/* Ensure form-groups display correctly in wizard */
.wizard-modal .wizard-step .form-group,
#wizard-step-content .wizard-step .form-group {
    display: block !important;
    width: 100%;
}

.wizard-modal .modal-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.wizard-modal .modal-footer .btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 120px;
    transition: all 0.3s ease;
}

.wizard-modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wizard-modal .modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.wizard-modal .modal-footer .btn-secondary {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.wizard-modal .modal-footer .btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.wizard-modal .modal-close {
    position: absolute;
    right: 15px;
    top: 24px;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 36px;
    height: 36px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 100;
}

.wizard-modal .modal-close:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    transform: rotate(90deg);
}

/* Professional Form Styling */
.form-group {
    margin-bottom: 24px;
}

.wizard-step .form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 6px;
    font-style: italic;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-group label input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:hover {
    border-color: rgba(102, 126, 234, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

input[type="time"].form-control {
    cursor: pointer;
}

input[type="number"].form-control {
    -moz-appearance: textfield;
}

input[type="number"].form-control::-webkit-inner-spin-button,
input[type="number"].form-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Path Items & Retention Grid - Professional Styling */
.path-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.path-item .form-control {
    flex: 1;
}

.path-item .btn-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.path-item .btn-danger {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.path-item .btn-danger:hover {
    background: #f44336;
    border-color: #f44336;
    color: white;
    transform: scale(1.05);
}

.retention-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.retention-grid .form-group {
    margin-bottom: 0;
}

.retention-grid .form-control {
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.checkbox-group label:hover {
    background: rgba(102, 126, 234, 0.05);
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
}

/* Section Header */
.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.badge-secondary {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.badge-info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .templates-grid,
    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .retention-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .template-card {
        flex-direction: column;
        text-align: center;
    }

    .template-icon {
        font-size: 64px;
    }

    .wizard-modal {
        width: 95%;
        max-width: none;
    }
}
