/* ============================================================
   JACK & BBQ — Dark theme za obrazac
   ============================================================ */

/* Layout */
body {
    background: transparent;
    margin-top: 10px;
    color: #e8e8e8;
}
.container { max-width: 800px; }

/* Labele */
label,
.custom-control-label {
    color: #e8e8e8;
    font-weight: 500;
}

/* Input polja — crna pozadina, bijeli tekst */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    color: #ffffff;
    transition: border-color 0.2s, background-color 0.2s;
}
.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #d4a04a;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(212, 160, 74, 0.15);
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 20, 1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Gumb — koristi .btn.btn-send specificity za override Bootstrap .btn-success */
.btn-send,
.btn.btn-send,
.btn-success.btn-send {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    padding: 0 40px;
    margin-bottom: 20px;
    margin-top: 8px;
    box-shadow: none;
    outline: none;
    background-color: #d4a04a;
    color: #0a0a0a;
    border-radius: 3px;
    transition: background-color 0.2s, transform 0.1s;
}
.btn-send:hover,
.btn-send:active,
.btn-send:focus,
.btn.btn-send:hover,
.btn.btn-send:active,
.btn.btn-send:focus,
.btn-success.btn-send:hover,
.btn-success.btn-send:active,
.btn-success.btn-send:focus {
    background-color: #e0b15c;
    color: #0a0a0a;
    opacity: 1;
    border: none;
}
.btn-send:active {
    transform: translateY(1px);
}
.btn-send:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Checkbox — override Bootstrap custom-checkbox za crnu pozadinu */
.custom-control-label::before {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #d4a04a;
    border-color: #d4a04a;
}
.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 2px rgba(212, 160, 74, 0.25);
}
.custom-control-label a {
    color: #d4a04a;
    text-decoration: underline;
    text-decoration-color: rgba(212, 160, 74, 0.4);
}
.custom-control-label a:hover {
    color: #d4a04a;
    text-decoration-color: #d4a04a;
}

/* Greške */
.help-block.with-errors {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 4px;
}
/* Bootstrap validator dodaje .has-error klasu */
.has-error .form-control,
.has-danger .form-control {
    border-color: #ff6b6b;
}

/* File upload — custom-file (Bootstrap 4) */
.custom-file-label {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    border-radius: 3px;
}
.custom-file-label::after {
    content: "Dodaj";
    background-color: #d4a04a;
    color: #0a0a0a;
    border: none;
    font-weight: 600;
}
.custom-file-input:focus ~ .custom-file-label {
    border-color: #d4a04a;
    box-shadow: 0 0 0 2px rgba(212, 160, 74, 0.15);
}
.custom-file { display: flex; align-items: center; }
.input-group-append { flex-shrink: 0; }

/* Cancel upload button */
.btn-outline-secondary {
    color: #e8e8e8;
    border-color: rgba(255, 255, 255, 0.2);
    background-color: transparent;
}
.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Drag & drop area */
#drag-and-drop-area {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}
#drag-and-drop-area.dragover {
    background-color: rgba(212, 160, 74, 0.1);
    border-color: #d4a04a;
    color: #ffffff;
}
#drag-and-drop-area.uploaded {
    background-color: rgba(212, 160, 74, 0.08);
    border-color: #d4a04a;
    color: #d4a04a;
}

/* Success / error alert poruke nakon submita */
.alert {
    border-radius: 3px;
    padding: 16px 20px;
    margin-top: 16px;
    border: 1px solid;
}
.alert h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}
.alert-success {
    background-color: rgba(212, 160, 74, 0.1);
    border-color: #d4a04a;
    color: #ffffff;
}
.alert-danger {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}
.alert .close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.alert .close:hover {
    opacity: 1;
}
