/* ==============================
   :ROOT VARIABLES
   ============================== */
:root {
    /* General colors */
    --primary: #66023C;
    --primary-dark: #4a012b;
    --primary-soft: #f7eef2;
    --secondary: #858796;

    --info: #36b9cc;

    --dark: #5a5c69;
    --light: #f8f9fc;
    --white: #fff;


    --success: #15803d;
    --warning: #b45309;
    --danger: #b91c1c;

    /* Subscription / Pricing */
    --primary-color: #4361ee;
    --success-color: #06d6a0;
    --warning-color: #b6800a;
    --danger-color: #ef476f;
    --dark-color: #073b4c;
    --light-color: #f8f9fa;

        /* RADIUS */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    /* SHADOW SYSTEM (enterprise depth) */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 3px 8px rgba(0,0,0,0.06);
    --shadow: 0 8px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
}

/* ==============================
   BASE STYLES
   ============================== */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==============================
   HEADER & NAVBAR
   ============================== */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.page-with-navbar {
    padding-top: 120px; /* važna linija za offset navbar */
}

.navbar-overlay {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: all .3s ease;
}

.navbar-overlay .navbar-nav .nav-link,
.navbar-overlay .navbar-brand,
.navbar-overlay .btn {
    color: white !important;
}

.navbar-overlay.scrolled {
    background: rgba(10,20,60,0.95);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn:hover {

    border-color: transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Export / Filter buttons */
.btn-export, .btn-filter-apply, .btn-filter-clear, .btn-pdf, .btn-back, .btn-renew, .btn-subscribe {
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-export.excel { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: white; border: none; }
.btn-export.pdf { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); color: white; border: none; }
.btn-filter-apply { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; }
.btn-filter-clear { background: #6c757d; color: white; border: none; }
.btn-pdf { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); color: white; border: none; border-radius: 50px; padding: 12px 30px; }
.btn-back { background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%); color: white; border: none; border-radius: 50px; padding: 12px 30px; }
.btn-renew { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 50px; padding: 8px 20px; font-size: 0.9rem; }
.btn-subscribe { background: linear-gradient(135deg, var(--primary-color) 0%, #7209b7 100%); color: white; border: none; border-radius: 50px; padding: 15px 30px; width: 100%; font-size: 1.2rem; }

/* ==============================
   CARDS
   ============================== */
.card, .payment-card, .pricing-card, .project-card, .partner-card, .user-info-card {
   
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.card:hover, .payment-card:hover, .pricing-card:hover, .project-card:hover, .partner-card:hover, .user-info-card:hover {
    transform: translateY(-5px);
      z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Pricing popular card */
.pricing-card.popular { border: 2px solid var(--primary-color); transform: scale(1.05); z-index: 10; }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }

/* ==============================
   PAYMENT DETAILS
   ============================== */
.payment-details-card, .payment-detail-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.payment-details-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 30px; 
    text-align: center; 
}

.payment-details-body { padding: 40px; }

.detail-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #e9ecef; }
.detail-row:last-child { border-bottom: none; }

.detail-label { color: #6c757d; font-weight: 500; }
.detail-value { font-weight: 600; color: #212529; }
.detail-value-large { font-size: 1.5rem; font-weight: 700; color: #2c3e50; }

/* Status badges */
.status-badge, .status-badge-detail {
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.status-succeeded { background: linear-gradient(135deg, #06d6a0 0%, #05b586 100%); color: white; }
.status-pending { background: linear-gradient(135deg, #ffd166 0%, #ffb347 100%); color: white; }
.status-failed { background: linear-gradient(135deg, #ef476f 0%, #d64161 100%); color: white; }

/* ==============================
   METADATA & TRANSACTION
   ============================== */
.metadata-json, .transaction-id {
    font-family: monospace;
    border-radius: 5px;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.metadata-json { background: #2c3e50; color: #e74c3c; padding: 15px; }
.transaction-id { background: #f8f9fa; padding: 5px 10px; }

/* ==============================
   EMPLOYEE & PROJECT
   ============================== */
.employee-image { border: 3px solid #f8f9fa; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.employee-image:hover { transform: scale(1.02); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

#map, .project-map { width: 100%; border-radius: 5px; }
#map { height: 400px; }
.project-map { height: 200px; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .lead { font-size: 1.1rem; }
    .navbar-collapse { padding-top: 1rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0; text-align: center; }
    .hero .btn { display: block; width: 100%; margin-bottom: 1rem; }
    .card.h-100 .h5 { font-size: 1.25rem; }
    .text-xs.font-weight-bold { font-size: 0.7rem; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .partner-hours-table { font-size: 0.8rem; }
}

@media (max-width: 576px) {
    .login-card { margin-top: 2rem; }
}


/* ==============================
   DROPDOWN FIX - PRIKAZ IZNAD KARTICA
   ============================== */
.employee-card,
.card {
    overflow: visible !important;
}

.card-footer {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.dropdown-menu {
    z-index: 9999 !important;
    background-color: #f1f1f1; /* Bootstrap dropdown z-index */
}

/* Osiguraj da dropdown nije odsječen */
.dropdown {
    position: relative;
    z-index: 100;
}

/* ===== PRICING SaaS STYLE ===== */

.pricing-wrapper {
    max-width: 1100px;
    margin: auto;
}

.pricing-card {
    border-radius: 18px;
    border: 1px solid #eee;
    transition: all .35s ease;
    background: #fff;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,.12);
}

.pricing-card.popular {
    border: 2px solid #0d6efd;
    transform: scale(1.05);
}

.price {
    font-size: 3.2rem;
    font-weight: 700;
    color: #0d6efd;
}

.price small {
    font-size: 1rem;
}

.feature-list li {
    margin-bottom: 12px;
}

.btn-subscribe {
    background: linear-gradient(135deg,#0d6efd,#5aa9ff);
    border: none;
    padding: 14px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: .3s;
}

.btn-subscribe:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 25px rgba(13,110,253,.4);
}

.plan-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.switch-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

.switch-btn.active {
    background: #0d6efd;
    color: white;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d6efd;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
}

.countdown-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.success-animation .checkmark {
    width: 80px;        /* smanji širinu */
    height: 80px;       /* smanji visinu */
    display: block;
    margin: 0 auto;
}

.success-animation .checkmark__circle {
    stroke: #28a745;    /* zelena boja */
    stroke-width: 2;
}

.success-animation .checkmark__check {
    stroke: #28a745;
    stroke-width: 2;
}

@media(max-width:768px){
    .pricing-card.popular{
        transform: none;
    }
}


