/* Stock Desk - Custom Styles */

:root {
    --color-primary: #f97316;
    --color-secondary: #ea580c;
}

/* Override Tailwind Orange classes to use dynamic theme colors */
.bg-orange-500 { background-color: var(--color-primary) !important; }
.hover\:bg-orange-600:hover { background-color: var(--color-secondary) !important; }
.text-orange-600 { color: var(--color-primary) !important; }
.text-orange-500 { color: var(--color-primary) !important; }
.border-orange-500 { border-color: var(--color-primary) !important; }
.bg-orange-50 { background-color: color-mix(in srgb, var(--color-primary) 10%, white) !important; }
.bg-orange-100 { background-color: color-mix(in srgb, var(--color-primary) 20%, white) !important; }
.focus\:border-orange-500:focus { border-color: var(--color-primary) !important; }
.focus\:ring-orange-500:focus { --tw-ring-color: var(--color-primary) !important; }
.accent-orange-500 { accent-color: var(--color-primary) !important; }

* {
    font-family: 'Inter', sans-serif;
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out; }
.animate-scale-in { animation: scaleIn 0.3s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.3s ease-out; }
.animate-slide-out-right { animation: slideOutRight 0.3s ease-out forwards; }
.animate-pulse-custom { animation: pulse 2s infinite; }
.animate-spin-custom { animation: spin 1s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Splash Screen */
.splash-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, #ffffff 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Toast Animations */
.toast-enter { animation: slideInRight 0.3s ease-out; }
.toast-exit { animation: slideOutRight 0.3s ease-out forwards; }

/* Sidebar */
.sidebar-collapsed { width: 4.5rem; }
.sidebar-expanded { width: 14rem; }

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.15) 0%, transparent 100%);
    border-left: 3px solid #f97316;
}

.sidebar-link.active .sidebar-icon { color: #f97316; }

/* Card Hover Effect */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Input Focus */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Button Press Effect */
.btn-press:active { transform: scale(0.98); }

/* Table Styles */
.table-row-hover:hover { background-color: #fff7ed; }

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Spinner */
.loader {
    border: 3px solid color-mix(in srgb, var(--color-primary) 30%, white);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* POS Card */
.pos-product-card { transition: all 0.15s ease; }
.pos-product-card:hover {
    border-color: #f97316;
    background-color: #fff7ed;
}
.pos-product-card:active { transform: scale(0.98); }

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* Device Frame Preview */
.device-frame {
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border-radius: 2rem;
    padding: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.device-screen {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
}

/* Carousel */
.carousel-container { overflow: hidden; }
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(249, 115, 22, 0.3);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .sidebar-desktop { display: none; }
    .mobile-header { display: flex; }
}

@media (min-width: 769px) {
    .sidebar-desktop { display: flex; }
    .mobile-header { display: none; }
    .mobile-menu { display: none; }
}
