html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif;
}

body > main {
    flex: 1 0 auto;
}

.main-footer {
    flex-shrink: 0;
}


.navbar {
    position: absolute;
    width: 100%;
    z-index: 10;
    background-color: #1e3f20 !important;
}

.navbar.navbar-transparent {
    background-color: transparent !important;
}

.navbar .as {
    text-decoration: none;
    color: white;
    letter-spacing: 3px;
    font-size: 20pt;
}

.navbar ul li a {
    color: white;
}

.navbar ul li a:hover {
    color: #cccccc;
}

.navbar-nav .register-trigger,
#login-trigger {
    color: white;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 10px;
    transition: .3s;
    margin-right: 15px;
}

.navbar-nav .register-trigger:hover,
#login-trigger:hover {
    background-color: white;
    color: black;
}

.hero-section {
    display: flex;
    background-image: url('../../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.5;
}

.hero-container {
    position: relative;  
    z-index: 1;              
}

.hero-title {
    font-size: 54px;
    font-style: italic;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-btn {
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    font-size: 16px;
    display: inline-block;
}

.hero-btn:hover {
    color: #cccccc;
    border-color: #cccccc;
}

.hero-section a {
    color: white;
    transition: .3s;
}

.offer-section {
    text-align: center;
    padding-top: 40px;
}

.offer-heading {
    font-size: 32px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    color: #000000;
}

.offer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #1e3f20;
}

.offer-subheading {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 40px;
}

.sport-card {
    height: 500px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.basketball-bg {
    background-image: url('../../img/basketball.jpg');
}

.football-bg {
    background-image: url('../../img/football.jpg');
}

.tennis-bg {
    background-image: url('../../img/tennis.jpg');
}

.padel-bg {
    background-image: url('../../img/padel.jpg');
}

.sport-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sport-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.sport-btn {
    color: #ffffff;
    background-color: #1e3f20;
    text-decoration: none;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.sport-btn:hover {
    background-color: #142b16;
    color: #ffffff;
}

.guide-section {
    background-color: #1B2F19;
    padding: 130px 0;
    margin-top: 50px;
    width: 100%;
}

.guide-heading {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.guide-icon {
    color: #a3c6a4;
    font-size: 36px;
    font-weight: bold;
    margin-right: 15px;
}

.guide-step {
    padding: 10px;
}

.guide-step-title {
    color: #ffffff;
    font-size: 23px;
    font-weight: bold;
    margin-bottom: 15px;
}

.guide-step-text {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
}

.register-overlay,
.login-overlay,
.booking-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.register-overlay.active,
.login-overlay.active,
.booking-overlay.active {
    display: flex;
}

.register-modal-box,
.login-modal-box,
.booking-modal-box {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.register-modal-header,
.login-modal-header,
.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.register-form-title,
.login-form-title,
.booking-form-title {
    color: black;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.register-close-btn,
.login-close-btn,
.booking-close-btn {
    background: none;
    border: none;
    color: black;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.register-close-btn:hover,
.login-close-btn:hover,
.booking-close-btn:hover {
    opacity: 1;
}

.form-label {
    color: black;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.register-input,
.login-input {
    background-color: #e9e9e9;
    border: 1px solid rgba(120, 120, 120, 0.2);
    border-radius: 8px;
    color: #000;
    padding: 10px 12px;
    width: 100%;
    outline: none;
}

.register-input:focus,
.login-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #7c7c7c;
    color: #000;
    outline: none;
}

.register-submit-btn,.login-submit-btn {
    width: 100%;
    background-color: #a3c6a4;
    color: #1e3f20;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.register-submit-btn:hover,.login-submit-btn:hover {
    background-color: #8db58f;
}

.forgot-password-link {
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #1e3f20;
    text-decoration: underline;
}
.no-scroll {
    overflow: hidden;
}

.booking-price-preview {
    color: #1e3f20;
    font-size: 16px;
    margin-bottom: 20px;
}

/* style za cenovnik */
.pricing-section {
    margin-top: 100px;
    margin-bottom: 80px;
    text-align: center;
}

.pricing-heading {
    color: black;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.pricing-underline {
    width: 80px;
    height: 4px;
    background-color: #1B2F19;
    margin: 0 auto 40px auto;
    border-radius: 2px;
}

.pricing-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
}

.pricing-tab-btn {
    color: #555555 !important;
    font-size: 16px;
    font-weight: 600;
    border: none !important;
    background: none !important;
    padding: 12px 24px !important;
    position: relative;
    transition: color 0.2s ease;
}

.pricing-tab-btn:hover {
    color: #1e3f20 !important;
}

.pricing-tab-btn.active {
    color: #1e3f20 !important;
    font-weight: bold;
}

.pricing-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1e3f20;
}

.price-card {
    background-color: #a3c6a4; 
    padding: 35px 20px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 63, 32, 0.15);
}

.price-card-title {
    color: #1e3f20;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.price-card-amount {
    color: #1e3f20;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 0;
}

/* style za footer */
.main-footer {
    background-color: #1B2F19;
    padding: 70px 0 30px 0;  
    width: 100%;
}


.footer-content {
    padding-bottom: 40px;
}


.footer-logo {
    color: #ffffff;
    font-size: 36px;
    letter-spacing: 5px; 
    margin-bottom: 20px;
}

.footer-social-title {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-social-icon-box {
    display: flex;
    gap: 15px; 
}

.footer-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-icon-circle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.footer-column-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-nav-list, 
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li,
.footer-contact-list li {
    margin-bottom: 12px;
}

.footer-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-nav-link:hover {
    opacity: 1;
}

.footer-contact-item {
    color: #ffffff;
    font-size: 15px;
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 20px;
    text-align: left;
}

.footer-copyright {
    color: #ffffff;
    font-size: 13px;
    opacity: 0.5;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/*moje_rezervacije*/

.reservation-section {
    padding: 150pt 0;
    background-color: #ffffff;
    min-height: 60vh; 
}

.reservation-header {
    margin-bottom: 40px;
}

.reservation-main-title {
    color: #1e3f20;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.reservation-subtitle {
    color: #666666;
    font-size: 16px;
    margin-bottom: 0;
}

.reservation-table-box {
    background-color: #ffffff;
    border: 1px solid #ebeeeb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 63, 32, 0.03);
    overflow: hidden;
}

.reservation-table {
    margin-bottom: 0 !important;
    border-collapse: separate;
}

.reservation-table thead th {
    background-color: #f4f7f4;
    color: #1e3f20;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border-bottom: 2px solid #e0e6e0;
}

.reservation-table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    color: #444444;
    font-size: 15px;
    border-bottom: 1px solid #f0f3f0;
}

.reservation-table tbody tr {
    transition: background-color 0.2s ease;
}

.reservation-table tbody tr:hover {
    background-color: #fafcfa;
}

.reservation-code {
    font-weight: bold;
    color: #1e3f20;
}

.reservation-court-name {
    font-weight: 500;
}

.reservation-note {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.status-active {
    background-color: rgba(163, 198, 164, 0.25);
    color: #1e3f20;
}

.status-pending {
    background-color: #fff4e5;
    color: #b26a00;
}

.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
}


.action-btn-group {
  display: flex;
  gap: 8px;
}

.action-btn {
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.edit-btn {
  background-color: #a3c6a4;
  color: #1e3f20;
}

.edit-btn:hover {
  background-color: #8db58f;
}

.cancel-btn {
  background-color: #ffebee;
  color: #c62828;
}

.cancel-btn:hover {
  background-color: #ffcdd2;
}

.action-btn:disabled {
  background-color: #eeeeee;
  color: #999999;
  cursor: not-allowed;
  opacity: 0.6;
}

.status-badge.status-cancelled {
  background-color: #ffebee !important;
  color: #c62828 !important;
}


.booking-modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.booking-modal-header {
  border-bottom: 1px solid #ebeeeb;
  padding: 20px 24px;
}

.booking-modal-header .modal-title {
  color: #1e3f20;
  font-weight: bold;
}

.booking-modal-input {
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}

.booking-modal-input:focus {
  border-color: #1e3f20;
  box-shadow: none;
}

.booking-modal-footer {
  border-top: 1px solid #ebeeeb;
  padding: 15px 24px;
}

.booking-modal-close-btn {
  background-color: #eeeeee;
  color: #444444;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}

.booking-modal-save-btn {
  background-color: #a3c6a4;
  color: #1e3f20;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.booking-modal-save-btn:hover {
  background-color: #8db58f;
}


/*contact.php*/


.contact-section {
    padding-bottom: 60px;
    padding-top: 120px;
    background-color: #ffffff;
}

.contact-header {
    margin-bottom: 40px;
    text-align: center;
}

.contact-title {
    color: #1e3f20;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #666666;
    font-size: 16px;
}

.contact-info-card {
    background-color: #f4f7f4;
    padding: 40px 30px;
    border-radius: 16px;
    height: 100%;
}

.info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-icon {
    color: #1e3f20;
    font-size: 20px;
    margin-top: 4px;
    margin-right: 20px;
    width: 24px;
    text-align: center;
}

.info-heading {
    color: #1e3f20;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.info-detail {
    color: #444444;
    font-size: 15px;
    margin-bottom: 0;
}

.contact-form-card {
    background-color: #ffffff;
    border: 1px solid #ebeeeb;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(30, 63, 32, 0.03);
}

.contact-input {
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.contact-input:focus {
    border-color: #1e3f20;
    box-shadow: none;
}

.contact-submit-btn {
    background-color: #a3c6a4;
    color: #1e3f20;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-submit-btn:hover {
    background-color: #8db58f;
}


/* profile.php */

.profile-section {
    padding-bottom: 60px;
    padding-top: 120px;
    background-color: #ffffff;
}

.profile-header {
    margin-bottom: 40px;
}

.profile-title {
    color: #1e3f20;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.profile-subtitle {
    color: #666666;
    font-size: 16px;
}

.profile-card {
    background-color: #ffffff;
    border: 1px solid #ebeeeb;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(30, 63, 32, 0.03);
    height: 100%;
}

.profile-card-title {
    color: #1e3f20;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
}

.profile-input {
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.profile-input:focus {
    border-color: #1e3f20;
    box-shadow: none;
}

.profile-save-btn {
    background-color: #a3c6a4;
    color: #1e3f20;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-save-btn:hover {
    background-color: #8db58f;
}


/* admin/index.php */

.admin-section {
    padding-top: 140px;
    padding-bottom: 60px;
    background-color: #f6f7f4;
    min-height: 100vh;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-main-title {
    margin-top: 10px;
    color: #1e3f20;
}

.admin-subtitle {
    margin-top: 6px;
    color: #6c757d;
}

.admin-badge {
    background-color: #1e3f20;
    color: #ffffff;
}

.admin-nav-tabs {
    border-bottom: 1px solid #dde3d9;
}

.admin-nav-tabs .nav-link {
    color: #1e3f20;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 12px 22px;
}

.admin-nav-tabs .nav-link:hover {
    color: #163017;
    border-bottom-color: #cddccd;
}

.admin-nav-tabs .nav-link.active {
    color: #1e3f20;
    background-color: transparent;
    border-bottom-color: #1e3f20;
}

.admin-card {
    border: none;
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 6px 20px rgba(30, 63, 32, 0.08);
}

.admin-table thead {
    background-color: #1e3f20;
    color: #ffffff;
}

.btn-admin-primary {
    background-color: #1e3f20;
    color: #ffffff;
    border: none;
}

.btn-admin-primary:hover {
    background-color: #163017;
    color: #ffffff;
}


/* employee/index.php */

.employee-section {
    padding-top: 140px;
    padding-bottom: 60px;
    background-color: #f6f7f4;
    min-height: 100vh;
}

.employee-header {
    margin-bottom: 30px;
}

.employee-main-title {
    margin-top: 10px;
    color: #1e3f20;
}

.employee-subtitle {
    margin-top: 6px;
    color: #6c757d;
}

.employee-badge {
    background-color: #1e3f20;
    color: #ffffff;
}

.employee-nav-tabs {
    border-bottom: 1px solid #dde3d9;
}

.employee-nav-tabs .nav-link {
    color: #1e3f20;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 12px 22px;
}

.employee-nav-tabs .nav-link:hover {
    color: #163017;
    border-bottom-color: #cddccd;
}

.employee-nav-tabs .nav-link.active {
    color: #1e3f20;
    background-color: transparent;
    border-bottom-color: #1e3f20;
}

.employee-card {
    border: none;
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 6px 20px rgba(30, 63, 32, 0.08);
}

.employee-filter-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(30, 63, 32, 0.08);
}

.employee-table thead {
    background-color: #1e3f20;
    color: #ffffff;
}

.btn-employee-primary {
    background-color: #1e3f20;
    color: #ffffff;
    border: none;
}

.btn-employee-primary:hover {
    background-color: #163017;
    color: #ffffff;
}


@media (max-width: 768px) {
    .admin-section {
        padding-top: 110px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .employee-section {
        padding-top: 110px;
    }

    .employee-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .navbar.navbar-transparent{
            background-color: rgba(0, 0, 0, 0.5) !important;
    }
    .navbar-nav #login-trigger, #register-trigger{
        border: none;
        font-weight: bold;
    }

    .reservation-table-box {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .reservation-table {
        min-width: 800px; 
    }
}
