/* assets/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2fc6f6;
    --primary-hover: #1db1df;
    --secondary-bg: #f5f7f8;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #808b96;
    --border-color: #e6e9ed;
    --success-color: #9dcf00;
    --danger-color: #ff5752;
    --warning-color: #ffab00;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --transition-base: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* HEADER STYLES */
.app-header {
    background: #fff;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.logo-box {
    width: 48px;
    height: 48px;
    background: rgba(47, 198, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* BUTTONS */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
}

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

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* TABLE STYLES */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table th {
    background: #fcfdfe;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.modern-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    vertical-align: middle;
    font-size: 14px;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tbody tr:hover td {
    background-color: #fcfdfe;
}

/* BADGES */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-active {
    background-color: rgba(157, 207, 0, 0.1);
    color: #7da500;
}

.badge-draft {
    background-color: rgba(128, 139, 150, 0.1);
    color: var(--text-secondary);
}

/* WIZARD STYLES */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    cursor: pointer;
    width: 120px;
}

.step-circle {
    width: 42px;
    height: 42px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.step-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.step-item.active .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(47, 198, 246, 0.2);
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-item.completed .step-circle {
    border-color: var(--success-color);
    background: var(--success-color);
    color: #fff;
}

/* MILLER COLUMNS (IMPROVED UI) */
.miller-col {
    height: 600px; /* Increased height */
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.miller-col:hover {
    box-shadow: var(--shadow-md);
    border-color: #dce1e6;
}

.miller-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    flex-shrink: 0;
    font-weight: 600;
    color: #424956;
}

.miller-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.miller-item {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease-out;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid transparent;
    position: relative;
}

.miller-item:hover {
    background: #f1f8fa;
    color: var(--primary-color);
}

.miller-item.active {
    background: #e3f2fd;
    color: #0077a3;
    font-weight: 600;
}

.miller-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.miller-item .bi-chevron-right {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
}

.miller-item:hover .bi-chevron-right,
.miller-item.active .bi-chevron-right {
    opacity: 1;
    transform: translateX(0);
}

.miller-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px;
    background: #fff;
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background: #fff;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 14px;
    color: #333;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-message.success { border-left-color: var(--success-color); }
.toast-message.error { border-left-color: var(--danger-color); }
.toast-message.warning { border-left-color: var(--warning-color); }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.toast-content {
    flex-grow: 1;
}
.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.toast-body {
    color: #666;
    line-height: 1.4;
}
.toast-close {
    color: #999;
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px 0 0;
    transition: 0.2s;
}
.toast-close:hover { color: #333; }
/* ACTIONS BUTTONS */
.action-btn-group {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: 0.2s;
    background: transparent;
}

.btn-action:hover {
    background: #f0f2f5;
    color: var(--primary-color);
    border-color: #e0e2e5;
}

.btn-action.delete:hover {
    background: #fff0f0;
    color: var(--danger-color);
    border-color: #ffcccc;
}

/* UTILS */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #e0e2e5;
    border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #cdd1d6;
}

