/* Vlastné štýly pre formulárový systém škola.sk */

/* Hlavička */
.navbar-brand img {
    height: 40px;
    transition: height 0.3s ease;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

/* Sticky navbar štýly */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar.sticky .navbar-brand img {
    height: 30px;
}

.navbar.sticky .navbar-brand span {
    font-size: 1.1rem;
    transition: font-size 0.3s ease;
}

.navbar.sticky .nav-link {
    font-size: 0.9rem;
    transition: font-size 0.3s ease;
}

.navbar.sticky .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Kompenzácia pre sticky navbar */
body.sticky-navbar {
    padding-top: 80px;
}

/* Animácie pre smooth scroll */
.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Banner štýly */
.banner-fullwidth {
    /*background: linear-gradient(135deg, #007bff, #0056b3);*/
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

.banner-fullwidth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(0, 0, 0, 0.3);*/
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-with-image {
    position: relative;
	background-position: center;
}

.banner-with-image .banner-content {
    position: relative;
    z-index: 2;
}

/* Responzívne bannery */
@media (max-width: 1200px) {
    .banner-with-image {
        min-height: 360px !important;
    }
}


@media (max-width: 992px) {
    .banner-with-image {
        min-height: 275px !important;
    }
}

@media (max-width: 768px) {
    .banner-with-image {
        min-height: 190px !important;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content {
        padding: 2rem 1rem !important;
    }
}

@media (max-width: 568px) {
    .banner-with-image {
        min-height: 160px !important;
		background-position: left!important;
    }
}




/* Formuláre */
.card {
    border: none;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    /*transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);*/
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
}

/* Formulárové polia */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Textarea v poznámke */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Responsívne úpravy pre polia */
@media (max-width: 768px) {
    .row .col-md-4,
    .row .col-md-6,
    .row .col-md-8 {
        margin-bottom: 1rem;
    }
}

/* GDPR modal odkazy */
.modal-body h6 {
    color: #007bff;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

/* Styling pre GDPR checkbox */
.form-check-label a {
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Tlačidlá */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    /*background: linear-gradient(135deg, #007bff, #0056b3);*/
	background-color:#007bff;
    border: none;
	
}

.btn-primary:hover {
    /*background: linear-gradient(135deg, #0056b3, #004085);*/
	background-color:#004085;
    /*transform: translateY(-1px);*/
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    border-color: #007bff;
    /*transform: translateY(-1px);*/
}

/* Upozornenia */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
}

/* Validačné štýly */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Päta */
footer {
    background: linear-gradient(135deg, #343a40, #495057) !important;
}

footer a:hover {
    color: #007bff !important;
    transition: color 0.2s ease-in-out;
}

/* Responzívne úpravy */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content {
        padding: 2rem 1rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Animácie */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Tooltip štýly */
.tooltip {
    font-size: 0.875rem;
}

/* Progress bar pre veľké formuláre */
.form-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

/* Sticky päta */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Zvýraznenie povinných polí */
.required-field::after {
    content: " *";
    color: #dc3545;
}

/* Hover efekty pre karty */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}