/* style.css - Premium Dark Glassmorphism Design System for Remeditech-Modern */

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

:root {
    --bg-main: #060609;
    --bg-surface: rgba(18, 18, 26, 0.65);
    --bg-surface-hover: rgba(26, 26, 38, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(0, 240, 255, 0.15);
    
    /* Neon Colors */
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.4);
    
    /* Orange Accents for Landing Page */
    --orange-accent: #ff6600;
    --orange-accent-hover: #ff7711;
    --orange-glow: rgba(255, 102, 0, 0.45);
    --orange-gradient: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    
    /* Semantic Colors */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.25);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.25);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.25);
    
    /* Typography Colors */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #060609;
    
    /* UI Dimensions */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-speed: 0.3s;
    --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow blobs in background */
body::before, body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.08;
}

body::before {
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

body::after {
    bottom: -20%;
    right: -20%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Card base */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) var(--transition-curve);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.05), 0 0 1px var(--primary-glow);
}

/* Header & Navigation */
header.app-header {
    background: rgba(6, 6, 9, 0.8);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

nav.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav.nav-menu a:hover, nav.nav-menu a.active {
    color: var(--primary);
}

/* Administracja Dropdown Menu */
.admin-nav-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropdown-trigger {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.admin-nav-dropdown:hover .admin-dropdown-trigger {
    color: var(--primary);
}

.admin-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    margin-top: 0.5rem;
    animation: fadeIn 0.2s ease;
}

.admin-nav-dropdown:hover .admin-dropdown-menu {
    display: flex;
    flex-direction: column;
}

.admin-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    width: 100%;
    height: 0.6rem;
    background: transparent;
}

.admin-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem !important;
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
    border-bottom: none !important;
}

.admin-dropdown-menu a:hover {
    color: var(--primary) !important;
    background: rgba(0, 240, 255, 0.05);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--danger);
    color: var(--text-inverse);
    box-shadow: 0 0 15px var(--danger-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-curve);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow), 0 0 10px var(--secondary-glow);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.badge-primary {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border-color: rgba(0, 240, 255, 0.2);
}

/* Login Screen Styles */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
}

.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: var(--border-radius-lg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: #fff;
    padding: 0.9rem 1.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    background: rgba(0, 0, 0, 0.45);
}

/* Form Alert Box */
.alert-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary);
}

/* Tables in Glass Cards */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS and Android */
}

table.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

table.modern-table th {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

table.modern-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

table.modern-table tr {
    transition: background-color 0.2s ease;
}

table.modern-table tr:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

/* Lists and Blocks */
.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li span.label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-list li span.value {
    font-weight: 600;
    text-align: right;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.device-card {
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.25s ease;
}

.device-card:hover {
    border-color: var(--primary-glow);
    background: rgba(0, 240, 255, 0.01);
    transform: translateY(-3px);
}

.device-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    padding-bottom: 0.4rem;
}

.device-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.device-card p strong {
    color: var(--text-main);
}

/* Details Page specific */
.details-header {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.details-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Image gallery on details */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Document download list */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.doc-item:hover {
    border-color: var(--border-glow);
    background: rgba(0, 240, 255, 0.02);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-info i {
    font-size: 1.4rem;
    color: var(--primary);
}

.doc-name {
    font-weight: 500;
    font-size: 0.92rem;
}

/* 404 & Error Page */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 120px);
    padding: 2rem;
}

.error-code {
    font-family: 'Rajdhani', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px var(--primary-glow);
    margin-bottom: 1.5rem;
}

.error-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.error-desc {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* Footer styling */
footer.app-footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    background: rgba(6, 6, 9, 0.5);
    margin-top: auto;
}

footer.app-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Warning / Blocked styling for images in Credit Control */
@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
        text-shadow: 0 0 20px rgba(239, 68, 68, 1);
    }
}

.gallery-item-blocked {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 2px solid var(--danger);
    cursor: not-allowed;
    position: relative;
    aspect-ratio: 1;
    transition: all var(--transition-speed) var(--transition-curve);
}

.gallery-item-blocked:hover {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.gallery-item-blocked img {
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(5px) grayscale(30%);
    opacity: 0.65;
    transition: all var(--transition-speed) var(--transition-curve);
}

.gallery-item-blocked:hover img {
    filter: blur(3px) grayscale(0%);
    opacity: 0.85;
}

.gallery-item-blocked .blocked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    z-index: 2;
}

.gallery-item-blocked .blocked-overlay i {
    color: var(--danger);
    font-size: 1.6rem;
    animation: pulse-warning 2s infinite ease-in-out;
}

/* ==========================================================================
   LANDING PAGE STYLES (Ultra-Modern with Orange Accents)
   ========================================================================== */

/* Ambient Orange Glow Blobs in Background */
.welcome-page::before {
    content: '';
    position: fixed;
    top: 30%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(140px);
    opacity: 0.07;
    background: radial-gradient(circle, var(--orange-accent) 0%, transparent 70%);
}

/* Guest Navigation Specifics */
nav.guest-menu a {
    position: relative;
    padding: 0.25rem 0;
}

nav.guest-menu a:not(.btn-orange-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange-accent);
    box-shadow: 0 0 8px var(--orange-glow);
    transition: width 0.3s ease;
}

nav.guest-menu a:not(.btn-orange-nav):hover::after {
    width: 100%;
}

nav.guest-menu a:not(.btn-orange-nav):hover {
    color: var(--orange-accent) !important;
}

.btn-orange-nav {
    background: var(--orange-gradient) !important;
    border: none !important;
    color: var(--text-inverse) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--orange-glow) !important;
    transition: all var(--transition-speed) var(--transition-curve) !important;
    padding: 0.55rem 1.3rem !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
}

.btn-orange-nav:hover, nav.guest-menu a.btn-orange-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--orange-glow), 0 0 10px rgba(255, 102, 0, 0.6) !important;
    color: var(--text-inverse) !important;
    text-decoration: none !important;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

.hero-badge {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.25);
    color: var(--orange-accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.05);
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    animation: fadeInUp 1s ease;
}

.hero-title span {
    background: linear-gradient(135deg, var(--orange-accent) 30%, #ffbe76 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 102, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    animation: fadeInUp 1.4s ease;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-orange {
    background: var(--orange-gradient);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--orange-glow), 0 0 10px rgba(255, 102, 0, 0.5);
    color: var(--text-inverse);
}

.btn-orange-outline {
    background: transparent;
    border: 1.5px solid var(--orange-accent);
    color: var(--orange-accent);
}

.btn-orange-outline:hover {
    background: var(--orange-accent);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px var(--orange-glow);
}

/* Sections Structure */
.landing-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    color: #fff;
}

.section-header h2 span {
    color: var(--orange-accent);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--orange-accent);
    box-shadow: 0 0 8px var(--orange-glow);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Us Section */
.about-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    transition: border-color 0.3s ease;
}

.about-card:hover {
    border-color: rgba(255, 102, 0, 0.25);
    box-shadow: 0 15px 45px rgba(255, 102, 0, 0.03), 0 0 1px var(--orange-glow);
}

@media (max-width: 768px) {
    .about-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}

.about-text h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.2rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.about-feature-item i {
    color: var(--orange-accent);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--orange-glow);
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual-icon {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--orange-accent) 0%, #ffb142 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px var(--orange-glow));
    animation: float 4s infinite ease-in-out;
}

/* Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-speed) var(--transition-curve);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.06), 0 0 2px var(--orange-glow);
}

.offer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--orange-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offer-card:hover::after {
    opacity: 1;
}

.offer-card-icon {
    font-size: 2.8rem;
    color: var(--orange-accent);
    text-shadow: 0 0 15px var(--orange-glow);
}

.offer-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-top: 0.5rem;
}

.offer-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(16px);
    padding: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    border-color: rgba(255, 102, 0, 0.25);
    background: rgba(255, 102, 0, 0.015);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.03);
}

.contact-card-icon {
    font-size: 1.8rem;
    color: var(--orange-accent);
    text-shadow: 0 0 10px var(--orange-glow);
    margin-top: 0.1rem;
}

.contact-card-content h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.35rem;
}

.contact-card-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-card-content strong {
    color: var(--text-main);
}

.contact-desc-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(16px);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    text-align: left;
    border-left: 4px solid var(--orange-accent);
}

.contact-desc-box h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.contact-desc-box p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

/* Base Responsive Overdue Lists & Warnings */
.overdue-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.5rem;
    gap: 1rem;
}

.overdue-list-item-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.overdue-list-item-details {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.overdue-box-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 4px;
    gap: 1rem;
}

.admin-overdue-item {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #fca5a5;
    flex-wrap: wrap;
    width: 100%;
}

/* ==========================================================================
   MEDIUM SCREEN RESPONSIVE NAVIGATION (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    nav.nav-menu {
        gap: 0.9rem !important;
    }
    nav.nav-menu a {
        font-size: 0.88rem !important;
    }
    .admin-dropdown-trigger {
        font-size: 0.88rem !important;
    }
    .user-greeting {
        display: none !important; /* Hide greeting to save massive space on small screens */
    }
    .logo {
        font-size: 1.6rem !important;
    }
    .logo img {
        height: 32px !important;
    }
    .btn-logout {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   MOBILE & RESPONSIVE OVERRIDES (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    /* Main Layout Padding Adjustment */
    main {
        padding: 1.5rem 0 !important;
    }

    /* Header Stack on Mobile (both Guest and Logged-in Menu) */
    .header-inner {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    nav.nav-menu, nav.guest-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.9rem !important;
    }
    
    nav.guest-menu a {
        font-size: 0.88rem !important;
    }
    
    .btn-orange-nav {
        padding: 0.45rem 1rem !important;
        font-size: 0.82rem !important;
    }

    /* Hero Section Mobile Scaling */
    .hero-section {
        padding: 3.5rem 0 2rem !important;
    }
    
    .hero-content {
        gap: 1.2rem !important;
    }
    
    .hero-badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 1rem !important;
    }
    
    .hero-title {
        font-size: 2.1rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 280px;
        margin: 0.5rem auto 0;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 0.7rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* General Spacing Overrides */
    .landing-section {
        padding: 3.5rem 0 !important;
    }
    
    .section-header {
        margin-bottom: 2.5rem !important;
    }
    
    .section-header h2 {
        font-size: 1.8rem !important;
    }
    
    .section-header p {
        font-size: 0.95rem !important;
    }

    /* About Section Overrides */
    .about-card {
        padding: 1.8rem !important;
        gap: 1.5rem !important;
    }
    
    .about-text h3 {
        font-size: 1.45rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center;
    }
    
    .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .about-visual-icon {
        font-size: 5rem !important;
    }

    /* Offer Section Overrides */
    .offer-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    
    .offer-card {
        padding: 1.8rem !important;
        gap: 1rem !important;
    }
    
    .offer-card-icon {
        font-size: 2.2rem !important;
    }
    
    .offer-card h3 {
        font-size: 1.3rem !important;
    }
    
    .offer-card p {
        font-size: 0.9rem !important;
    }

    /* Contact Section Overrides */
    .contact-grid {
        gap: 2rem !important;
    }
    
    .contact-info-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .contact-card {
        padding: 1.2rem !important;
        gap: 1rem !important;
    }
    
    .contact-card-icon {
        font-size: 1.5rem !important;
    }
    
    .contact-card-content h4 {
        font-size: 1.05rem !important;
    }
    
    .contact-card-content p {
        font-size: 0.88rem !important;
    }
    
    .contact-desc-box {
        padding: 1.8rem !important;
        gap: 1rem !important;
    }
    
    .contact-desc-box h3 {
        font-size: 1.45rem !important;
        text-align: center;
    }
    
    .contact-desc-box p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .contact-desc-box .btn {
        width: 100%;
        text-align: center;
    }

    /* Responsive Overdue Warnings Mobile Overrides */
    .blocked-warning-card-body {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
    }
    
    .blocked-warning-icon-wrapper {
        margin: 0 auto;
    }
    
    .blocked-warning-content-wrapper {
        width: 100%;
    }
    
    .overdue-list-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.4rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .overdue-list-item-details {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .overdue-box-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.4rem !important;
    }
    
    .overdue-box-item-details {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .admin-overdue-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.35rem !important;
        padding: 0.6rem 0.8rem !important;
    }
    
    .admin-overdue-item .pipe-separator {
        display: none !important;
    }
    
    .admin-overdue-item > span,
    .admin-overdue-item > strong {
        display: block !important;
        margin-top: 0.1rem !important;
    }

    /* Universal Responsive Form Grids & Action Bars */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1.2fr 0.8fr"],
    div[style*="grid-template-columns: 1.3fr 0.7fr"],
    div[style*="grid-template-columns: 140px 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Responsive Flex Action Bars on small devices (e.g. Save/Cancel button panels) */
    @media (max-width: 480px) {
        div[style*="display: flex; justify-content: flex-end"],
        div[style*="display: flex; gap: 1rem; justify-content: flex-end"],
        div[style*="display: flex; gap: 1.5rem; justify-content: flex-end"] {
            flex-direction: column-reverse !important;
            width: 100% !important;
            gap: 0.75rem !important;
        }
        div[style*="display: flex; justify-content: flex-end"] .btn,
        div[style*="display: flex; gap: 1rem; justify-content: flex-end"] .btn,
        div[style*="display: flex; gap: 1.5rem; justify-content: flex-end"] .btn {
            width: 100% !important;
            margin: 0 !important;
        }
    }

    /* Responsive Tables Overrides */
    .table-responsive table.modern-table {
        min-width: 780px !important; /* Forces the table to maintain readable column widths and trigger smooth horizontal scroll */
    }

    /* Order Edit bottom buttons responsive design */
    .order-edit-actions {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 1.25rem !important;
        width: 100% !important;
    }
    
    .order-edit-actions-danger {
        width: 100% !important;
    }
    
    .order-edit-actions-danger .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .order-edit-actions-main {
        flex-direction: column-reverse !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }
    
    .order-edit-actions-main .btn,
    .order-edit-actions-main a.btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Table to Cards layout on mobile for Baza Klientów */
    .table-responsive-cards table.modern-table {
        min-width: 100% !important;
        border: none !important;
        background: transparent !important;
    }
    
    .table-responsive-cards table.modern-table thead {
        display: none !important; /* Hide header */
    }
    
    .table-responsive-cards table.modern-table tbody,
    .table-responsive-cards table.modern-table tr,
    .table-responsive-cards table.modern-table td {
        display: block !important;
        width: 100% !important;
    }
    
    .table-responsive-cards table.modern-table tr {
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: var(--border-radius-md) !important;
        padding: 0.8rem 1rem !important;
        margin-bottom: 1.25rem !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        transition: all 0.25s ease !important;
    }
    
    .table-responsive-cards table.modern-table tr:hover {
        border-color: rgba(0, 240, 255, 0.2) !important;
        box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.05) !important;
    }
    
    .table-responsive-cards table.modern-table td {
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        position: relative !important;
        padding: 0.8rem 0.5rem 0.8rem 42% !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        min-height: 3.5rem !important;
        justify-content: center !important;
    }
    
    .table-responsive-cards table.modern-table td:last-child {
        border-bottom: none !important;
    }
    
    .table-responsive-cards table.modern-table td::before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 0.75rem !important;
        width: 35% !important;
        font-family: 'Rajdhani', sans-serif !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 0.82rem !important;
        color: var(--primary) !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .table-responsive-cards table.modern-table td div {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
    
    .table-responsive-cards table.modern-table td div[style*="pulse-warning"] {
        padding: 0.4rem 0.8rem !important;
        gap: 0.4rem !important;
        white-space: normal !important;
        border-radius: 20px !important;
    }

    .table-responsive-cards table.modern-table td div[style*="pulse-warning"] i {
        font-size: 1rem !important;
    }
    
    .table-responsive-cards table.modern-table td div[style*="pulse-warning"] span {
        font-size: 0.75rem !important;
    }

    /* Table to key-value card blocks for property sheets on mobile */
    .table-key-value table,
    .table-key-value tbody,
    .table-key-value tr,
    .table-key-value td {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        background: transparent !important;
        border: none !important;
    }
    
    .table-key-value thead {
        display: none !important;
    }
    
    .table-key-value tr {
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: var(--border-radius-sm) !important;
        padding: 0.85rem 1rem !important;
        margin-bottom: 0.85rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    
    .table-key-value td {
        padding: 0.4rem 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .table-key-value td:first-child {
        color: var(--primary) !important;
        font-family: 'Rajdhani', sans-serif !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
        padding-bottom: 0.3rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        margin-bottom: 0.4rem !important;
    }
    
    .table-key-value td:last-child {
        padding-top: 0.1rem !important;
    }
    
    .table-key-value td span[style*="float: right"] {
        float: none !important;
        display: block !important;
        margin-top: 0.35rem !important;
        font-size: 0.78rem !important;
    }
}
