/* ==========================================================================
   BASE STYLES & HEADERS base.css
   ========================================================================== */

/* Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-y: auto;
    background-color: var(--admin-header); /* Uporabi temno barvo iz sheme */
}

/* Headings Styling */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);

}

h2 {
  font-size: 1.5rem;
  color: var(--text-white);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1rem;
}


h3 {
  font-size: 1.75rem;
  color: var(--text-white);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  padding: 20px;
}

h5 {
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Responsive Headings */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 0.9rem; }
}

/* Page Headers */
.title-header h1 {
  font-size: 1.75rem;
  padding: 1rem 1.5rem;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}

/* Card Headers */
.card-header h6 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* Form Section Headers */
.form-section h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

/* Title Header */
.title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.title-header h1 {
    margin: 0;
    font-weight: 600;
    color: var(--primary);
}

.title-header h1 i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Responsive Title Header */
@media (max-width: 576px) {
    .title-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Utility Classes */
.highlight-error {
    border: 2px solid var(--danger) !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse 1.2s infinite;
}

/* Splošni odmik za celice v tabelah */
.page-data-table th,
.page-data-table td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}


@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--pulse-color); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 var(--pulse-color); }
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-style: italic;
    background: var(--bg-panel);
    border-radius: 4px;
    margin: 20px 0;
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mb-2 { margin-bottom: 8px; }
.mt-2 { margin-top: 8px; }

.admin-alert-info {
    background-color: var(--success);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: 0.35rem;
    text-align: center;
    margin: -1rem 0 1.5rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 500;
}

.admin-alert-info i {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-alert-info {
        margin: -1rem 0.75rem 1.5rem 0.75rem;
        padding: 0.875rem 1rem;
    }
}

/* ==========================================================================
   DASHBOARD CARD BODY
   ========================================================================== */

.card-body {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.card-body p {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.card-body:hover p {
    transform: scale(1.05);
    color: #1a252f;
}




/* LOGIN-LOGOUT */

/* Logout section styles */
.login-logout-section {
    display: flex;
    align-items: center;
    height: 100%; /* Zagotovi, da se element razteza po celotni višini glave */
    gap: 25px; /* Povečan razmak med uporabnikom in gumbom */
    margin-left: auto;
    margin-right: 20px;
}
.login-welcome-text {
    color: #fff;
    font-size: 14px;
}
.login-welcome-text strong {
    color: #fff;
    font-weight: 600;
}
.login-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px; /* Večji padding za večji gumb */
    background-color: transparent; /* Prozorno ozadje */
    color: #fff; /* Bela barva besedila */
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #fff; /* Bela obroba */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Svetlo sivo ozadje ob hoverju */
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px); /* Majhen dvig ob hoverju */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.login-logout-btn:active {
    transform: translateY(0); /* Vrnitev v prvotno pozicijo ob kliku */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login-logout-btn i {
    font-size: 16px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .login-logout-section {
        margin-right: 10px;
        gap: 15px; /* Manjši razmak na mobilnih napravah */
    }
    
    .login-welcome-text {
        display: none;
    }
    
    .login-logout-btn {
        padding: 8px 12px; /* Manjši gumb na mobilnih napravah */
    }
    
    .login-logout-btn span {
        display: none;
    }
    
    .login-logout-btn i {
        font-size: 14px;
    }
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        min-height: 60px;
        padding: 1rem;
    }
    
    .card-body p {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .card-body {
        min-height: 50px;
        padding: 0.8rem;
    }
    
    .card-body p {
        font-size: 1.5rem;
    }
}

/* ===[ START: Admin Batch Background ]=== */
.admin-batch {
    background-image: url('../img/login-back.jpg');
    background-size: cover; /* Pokrije celotno območje */
    background-position: center center; /* Centriraj sliko */
    background-repeat: no-repeat; /* Ne ponavljaj slike */
    background-attachment: fixed; /* Ozadje ostane fiksno ob drsenju */
}
/* ===[ END: Admin Batch Background ]=== */
