:root {
    --tb-bg: #f8fafc;
    --tb-card: #ffffff;
    --tb-line: #cbd5e1; 
    --tb-text: #0f172a;
    --tb-muted: #475569;
    --tb-primary: #1c58f6; 
    --tb-primary-hover: #123cb3;
    --tb-soft: #f1f5f9;
    --tb-danger: #ff4d4d;
    --tb-ok: #10b981;
    --tb-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
    --tb-radius: 4px; 
}

body {
    background-color: var(--tb-bg);
    color: var(--tb-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tb-panel {
    background: var(--tb-card);
    border-radius: var(--tb-radius);
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.tb-field {
    margin-bottom: 24px;
}

.tb-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tb-text);
    font-size: 14px;
}

.tb-field input[type="text"],
.tb-field input[type="email"],
.tb-field input[type="password"],
.tb-field input[type="number"],
.tb-field input[type="datetime-local"],
.tb-field textarea,
.tb-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    color: var(--tb-text);
    background-color: #fff;
    transition: all 0.15s ease-in-out;
}

.tb-field input:focus,
.tb-field textarea:focus,
.tb-field select:focus {
    border-color: #1c58f6 !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(28, 88, 246, 0.12) !important;
}

.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: var(--tb-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tb-btn-primary {
    background: var(--tb-primary) !important;
    color: #ffffff !important;
}

.tb-btn-primary:hover {
    background: var(--tb-primary-hover) !important;
    box-shadow: 0 4px 10px rgba(28, 88, 246, 0.25) !important;
}

.tb-btn-danger {
    background: var(--tb-danger) !important;
    color: #ffffff !important;
}

.tb-btn-danger:hover {
    background: #cc0000 !important;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.25) !important;
}

.tb-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 35px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1px;
    flex-wrap: wrap;
}

.tb-nav a {
    padding: 11px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--tb-radius) var(--tb-radius) 0 0;
    text-decoration: none;
    color: var(--tb-muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.tb-nav a:hover {
    color: var(--tb-text);
    background: #f1f5f9;
}

.tb-nav a.active {
    background: var(--tb-primary) !important;
    color: #ffffff !important;
    border-color: var(--tb-primary) !important;
}

.tb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--tb-radius);
}

.tb-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--tb-muted);
    border-bottom: 2px solid #e2e8f0;
}

.tb-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

/* KOREKCIJA NOTIFIKACIJE: Podignuto za 30px prema gore (s 25px na 55px) */
#bulk_form_response {
    position: fixed;
    bottom: 55px; 
    right: 25px;
    z-index: 99999;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.tb-alert {
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid transparent;
    pointer-events: auto;
    animation: slideInUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tb-alert-success { background: #10b981 !important; color: #ffffff !important; border-color: #059669; }
.tb-alert-error { background: #ef4444 !important; color: #ffffff !important; border-color: #dc2626; }

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tb-pill-ok {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tb-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.tb-check input[type="radio"],
.tb-check input[type="checkbox"] {
    accent-color: var(--tb-primary);
    transform: scale(1.25);
    margin-right: 4px;
    cursor: pointer;
}

.tb-editor-wrap {
    border: 1px solid var(--tb-line) !important;
    border-radius: var(--tb-radius) !important;
    overflow: hidden;
    background: #fff;
}

.tb-editor-wrap textarea {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 14px !important;
}

.tb-file-upload-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.tb-file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.tb-file-label {
    display: flex;
    align-items: center;
    border: 1px solid var(--tb-line); 
    border-radius: var(--tb-radius);
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    height: 45px;
}

/* KOREKCIJA GUMBA: Boja promijenjena u jarkoplavu #03A1FE */
.tb-file-btn {
    background: #03A1FE !important; 
    color: #ffffff !important;
    padding: 0 22px; 
    font-size: 14px;      
    font-weight: 700;    
    display: flex;
    align-items: center;
    height: 100%;
    border-right: 1px solid #03A1FE;
    transition: background 0.15s ease;
}

.tb-file-label:hover .tb-file-btn {
    background: #028fd4 !important;
}

.tb-file-text {
    padding: 0 15px;
    color: var(--tb-muted);
    font-size: 14px;      
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}