/* ============================================================================
   Software Tech BD - Enterprise Software Solutions Stylesheet
   ============================================================================ */

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

/* Tailwind v3 utility compatibility helpers */
.backdrop-blur-xs {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
}
.shadow-2xs {
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

/* Left Sidebar Menu Text: Regular Non-Bold Black Font with Dotted Underline */
.sidebar-menu-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #020617;
    font-weight: 400;
    -webkit-text-stroke: 0px transparent;
    letter-spacing: 0.01em;
    border-bottom: 2px dotted rgba(2, 6, 23, 0.55);
    padding-bottom: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidebar-item {
    transition: all 0.2s ease;
    border: 1.5px solid #ffffff;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateX(4px);
    border: 1.5px solid #ffffff;
    border-left: 4px solid #facc15;
}

.sidebar-item.active {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%) !important;
    transform: translateX(4px);
    border: 1.5px solid #ffffff;
    border-left: 5px solid #fef08a;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.55);
}

.sidebar-item.active .sidebar-menu-text {
    color: #ffffff;
    font-weight: 400;
    -webkit-text-stroke: 0px transparent;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Card hover elevation */
.software-card {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.14), 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.software-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 20px 32px -6px rgba(14, 165, 233, 0.32), 0 0 22px rgba(56, 189, 248, 0.38);
}

/* Solid Blue Light Glow Utilities */
.blue-light-glow {
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.blue-sidebar-glow {
    box-shadow: 4px 0 32px rgba(14, 165, 233, 0.38), inset -1px 0 0 rgba(125, 211, 252, 0.45);
}

.blue-header-glow {
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.16);
}

/* Pulse animation for Big Discount Tag */
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.discount-badge {
    animation: badgePulse 2s infinite;
}

/* Product Image Canvas: 2:1 ratio matching 5in x 2.5in editor canvas */
.product-image-canvas {
    width: 100%;
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
}

/* Exact 5in width x 2.5in height Image Canvas under Manual Software Price, Info & Image Manager */
.editor-image-canvas-frame {
    width: 5in;
    max-width: 100%;
    box-sizing: border-box;
}

.editor-image-canvas {
    width: 5in;
    max-width: 100%;
    height: 2.5in;
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
}

/* Price Preset Table thumbnail matching exact 5in x 2.5in (2:1) ratio */
.preset-thumb-canvas {
    width: 96px;
    height: 48px;
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
}

/* Guarantee uploaded images obey exact inline object-fit, object-position & zoom without Tailwind preflight interference */
.canvas-fit-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.canvas-draggable {
    cursor: grab;
}
.canvas-draggable:active {
    cursor: grabbing;
}

/* Subtle checkerboard behind transparent/contained uploaded images in Admin Canvas Preview */
.canvas-checker-bg {
    background-color: #f8fafc;
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* Custom subtle scrollbars for sidebars and modals */
aside::-webkit-scrollbar,
.modal-scroll::-webkit-scrollbar {
    width: 6px;
}

aside::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 9999px;
}
