/* ========================================================================= */
/*      PROFESIONALNI CSS ZA STRANICU DODAVANJA oglasa              */ 
/*      Glassmorphism & Deep Space Blue Theme                              */
/* ========================================================================= */

:root {
    /* Color Palette */
    --bg-deep-space: #0d1b2a;
    --surface-glass-1: rgba(23, 43, 65, 0.6);   /* Glavni kontejner */
    --surface-glass-2: rgba(13, 27, 42, 0.7);   /* Input polja */
    --surface-glass-3: rgba(13, 27, 42, 0.8);   /* Tab kontejner */
    
    --text-primary: #e0e1dd;
    --text-secondary: #a9d6e5;
    --text-muted: #778da9;

    --accent-primary: #4caee5;
    --accent-primary-hover: #5bc0f7;
    --accent-success: #2ecc71;
    --accent-danger: #e74c3c;

    --border-color: rgba(169, 214, 229, 0.25);
    --border-color-hover: rgba(76, 175, 229, 0.6);
    --border-color-focus: var(--accent-primary);

    /* Sizing & Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* ================== GLOBAL & TYPOGRAPHY ================== */
body {
    background-color: var(--bg-deep-space);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
}
h4 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--text-secondary) !important;
}

/* ================== PAGE BANNER ================== */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(5px) saturate(0.8);
    z-index: 1;
}
.page-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.7), rgba(23, 43, 65, 0.85));
    z-index: 2;
}
.page-banner h1, .page-banner .breadcrumb {
    position: relative;
    z-index: 3;
}
.page-banner h1 {
    font-size: 3em;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.breadcrumb {
    background-color: transparent;
    padding: 0;
}
.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb-item a:hover { color: var(--text-primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ================== PAGE CONTENT & GLASS CONTAINER ================== */
.page-content {
    background-color: var(--bg-deep-space) !important;
    padding: 60px 0;
}
.page-content .container {
    background: var(--surface-glass-1) !important;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
}

/* ================== FORMS & INPUTS ================== */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, .select2-container--default .select2-selection--single {
    background-color: var(--surface-glass-2) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow: var(--shadow-inset);
    transition: all 0.25s ease-in-out;
    height: auto !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
    line-height: inherit !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-secondary) transparent transparent transparent !important;
}

input:hover, textarea:hover, .select2-container--default .select2-selection--single:hover {
    border-color: var(--border-color-hover) !important;
}
input:focus, textarea:focus, .select2-container--open .select2-selection--single {
    border-color: var(--border-color-focus) !important;
    outline: none !important;
    box-shadow: 0 0 15px rgba(76, 175, 229, 0.2), var(--shadow-inset);
}
input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
}

/* ================== BUTTONS ================== */
.btn, button {
    color: var(--text-primary) !important;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

button[type="submit"], .btn-primary { background: linear-gradient(135deg, var(--accent-primary), #3a97c9) !important; }
button[type="submit"]:hover, .btn-primary:hover { background: linear-gradient(135deg, var(--accent-primary-hover), var(--accent-primary)) !important; }

.btn-success { background: var(--accent-success) !important; }
.btn-danger { background: var(--accent-danger) !important; }

/* ================== SIDEBAR ================== */
.user-sidebar {
    background: var(--surface-glass-1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md) !important;
    padding: 15px !important;
}

/* Reset list style da nema tačaka */
.user-sidebar ul,
.user-sidebar ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.user-sidebar ul li::marker { content: none; }
.user-sidebar ul li { margin-bottom: 6px; }

/* Nova stilizacija linkova */
.user-sidebar ul li a {
    background: rgba(85, 98, 120, 0.41) !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease !important;
}
.user-sidebar ul li a:hover {
    background: rgba(76, 175, 229, 0.15) !important;
    color: var(--text-primary) !important;
    border-left-color: var(--accent-primary);
    transform: translateY(-2px);
}
.user-sidebar ul li a.active {
    background: linear-gradient(135deg, var(--accent-primary), #3a97c9) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 229, 0.2) !important;
    transform: translateY(-2px);
}

/* ================== PARTS CATEGORY TABS ================== */
.parts-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--surface-glass-3);
    padding: 10px;
    border-radius: var(--border-radius-md);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.parts-category-tabs a {
    flex-grow: 1;
    text-align: center;
    padding: 10px 15px;
    color: var(--text-secondary) !important;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid transparent;
}
.parts-category-tabs a:not(.active):hover {
    background: rgba(76, 175, 229, 0.15) !important;
    color: var(--text-primary) !important;
    transform: translateY(-2px);
}
.parts-category-tabs a.active {
    background: linear-gradient(135deg, var(--accent-primary), #3a97c9) !important;
    color: var(--text-primary) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(76, 175, 229, 0.2) !important;
    transform: translateY(-2px);
}

/* ================== UTILITIES & OTHER ================== */
.alert-info {
    background-color: rgba(76, 175, 229, 0.1) !important;
    border: 1px solid rgba(76, 175, 229, 0.2) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--border-radius-sm);
}

input[type="file"] { color: var(--text-secondary); }
input[type="file"]::file-selector-button {
    background-color: #415a77;
    color: var(--text-primary);
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.3s;
}
input[type="file"]::file-selector-button:hover { background-color: var(--text-muted); }
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #fff!important;
}
/* ===== Biznis tab highlight ===== */
.user-sidebar .user-sidebar-menu li.biz-active > a {
  background: #facc15 !important;   /* žuto */
  color: #0b1530 !important;         /* tamno plava slova */
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(11,21,48,.18) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.15) !important;
}

.user-sidebar .user-sidebar-menu li.biz-active > a i {
  color: #0b1530 !important;         /* ikonice tamno plave */
}
