/* Inherit existing font faces from app.css */
@font-face {
    font-family: 'Etar';
    font-weight: 400;
    font-style: normal;
    src: url('../assets/EtarRNIDS-Regular.woff2');
}

@font-face {
    font-family: 'Helvetica';
    font-weight: 400;
    font-style: normal;
    src: url('../assets/Helvetica-Neue-LT-Pro-93-Black-Extended.otf');
}

body {
    font-family: "Etar";
    background-color: #f1f1f1;
    min-height: 100vh;
}

.hero {
    min-height: 100vh;
    background-color: #3B4373;
    background-image: url('../assets/gradient.png');
    background-size: 105% 105%;
    animation: subtleShake 20s ease-in-out infinite;
    color: #F1F1F1;
}

.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.form-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.form-box h2 {
    font-family: "Helvetica";
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: #f1f1f1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Admin dashboard specific styles */
.admin-container .form-label {
    color: #212529;
    font-weight: 500;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background-color: #ffffff26;
    border: none;
    padding: 10px 60px;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: #ffffff5c;
}

.errors {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert {
    margin-bottom: 1rem;
}

/* Admin Dashboard Styles */
.admin-container {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-container .form-control {
    background-color: #fff;
    color: #212529;
    border: 1px solid #ced4da;
}

.admin-container .form-control::placeholder {
    color: #6c757d;
}

.admin-container .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.admin-container .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.admin-container .form-control:focus {
    background-color: #fff;
    color: #212529;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

/* Navigation styles copied from app.css with !important */
.nav {
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.nav .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.nav .logo {
    margin-top: 20px !important;
    margin-left: 18px !important;
}

.nav p {
    font-size: 16px !important;
}

.nav img {
    margin-bottom: 5px !important;
    height: 26px !important;
}

.nav .hamburger {
    cursor: pointer !important;
    font-size: 26px !important;
    margin-right: 18px !important;
    display: flex !important;
    align-items: center !important;
}

.back-arrow {
    color: #F1F1F1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    font-size: 26px !important;
}

.back-arrow:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

@media only screen and (max-width: 575px) {
    .nav p {
        font-size: 14px !important;
    }
    
    .nav img {
        height: 24px !important;
    }
}

.table {
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.pagination {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .registration-container {
        padding: 1rem;
    }
    
    .form-box {
        padding: 1.5rem;
    }

    /* Admin dashboard mobile optimizations */
    .admin-container .card-body {
        padding: 0.75rem;
    }

    .admin-container .row.g-3 {
        margin-bottom: 0;
    }

    .admin-container .col-md-4,
    .admin-container .col-md-2 {
        margin-bottom: 0.5rem;
    }

    .admin-container .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    @media (max-width: 768px) {
        .admin-container .btn {
            padding: 0.5rem 8px;  /* Smanjeno sa 60px na 8px */
            white-space: nowrap;
            width: auto !important;
            height: 38px;
            margin-top: 1.85rem;
        }

        .admin-container .card-body {
            padding: 1rem;
        }

        .admin-container .form-group {
            margin-bottom: 0.5rem;
        }
    }
}

@keyframes subtleShake {
    0% { background-position: 50% 50%; }
    25% { background-position: 51% 50%; }
    50% { background-position: 50% 51%; }
    75% { background-position: 49% 50%; }
    100% { background-position: 50% 50%; }
}
