@import "base/variables.css";
@import "base/base.css";
@import "components/ui.css";
@import "layouts/dashboard.css";

/* Enterprise Global Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content-enterprise {
    background: white;
    width: 500px;
    max-width: 90%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

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

.modal-header-enterprise {
    padding: var(--spacing-4) var(--spacing-6);
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title { display: flex; align-items: center; gap: var(--spacing-3); color: var(--primary); }
.modal-title i { color: var(--accent); width: 20px; }
.modal-title h3 { margin: 0; font-size: 1rem; font-weight: 700; }

.modal-body { padding: var(--spacing-6); }
.modal-footer-enterprise {
    padding: var(--spacing-4) var(--spacing-6);
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
}

/* UI Helpers */
.btn-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}
.btn-icon:hover { background: var(--silver-light); color: var(--accent); }
.btn-icon i { width: 18px; height: 18px; }

/* Interactive Hover Lift */
.hover-lift {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.actions-group { display: flex; align-items: center; gap: var(--spacing-2); justify-content: center; }
.btn-sm { padding: 4px 12px; font-size: 0.75rem; }

/* Dashboard Extras */
.system-badge-footer {
    margin-top: var(--spacing-6);
    padding: var(--spacing-4);
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-mini { font-weight: 800; font-size: 0.8rem; color: var(--primary); }
.logo-mini span { color: var(--accent); }
.version { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

.status-meta { display: flex; align-items: center; gap: var(--spacing-3); color: var(--text-main); }
.status-meta i { width: 16px; height: 16px; color: var(--text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.action-button {
    display: flex; flex-direction: column; gap: 4px; padding: var(--spacing-6);
    background: white; border: 1px solid var(--border-color); border-radius: var(--radius);
    transition: all 0.2s; text-decoration: none;
}
.action-button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.action-button i { width: 24px; height: 24px; color: var(--accent); margin-bottom: 4px; }
.action-button span { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.action-button small { color: var(--text-muted); font-size: 0.7rem; }

/* Transitions.dev Helpers */
.t-panel {
    opacity: 0;
    filter: blur(var(--panel-blur));
    transform: translateY(var(--panel-translate-y));
    transition: 
        opacity var(--panel-open-dur) var(--panel-ease),
        filter var(--panel-open-dur) var(--panel-ease),
        transform var(--panel-open-dur) var(--panel-ease);
    will-change: opacity, filter, transform;
}

.t-panel.is-open {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
}

/* UI Polish: Inputs & Cards */
.wms-input-refined {
    background-color: #f1f5f9; /* Inset feel */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.wms-input-refined:focus {
    background-color: white;
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Error Shake Animation */
.is-shaking {
    animation: shake var(--shake-dur-a) var(--shake-ease) infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(calc(var(--shake-distance) * -1)); }
    75% { transform: translateX(var(--shake-distance)); }
}

@media (prefers-reduced-motion: reduce) {
    .t-panel, .is-shaking {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}
