/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffefef;
    color: #333;
    margin: 0;
    padding: 0;
    padding-top: 70px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(253, 248, 248, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: background-color 0.3s, opacity 0.3s;
    justify-content: flex-start;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo .logo {
    height: 50px;
    filter: invert(46%) sepia(95%) saturate(470%) hue-rotate(350deg) brightness(102%) contrast(101%);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: grey;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: #ff7b00;
}

.nav-button {
    margin-left: auto;
    margin-right: 40px;
}

.login-btn {
    background-color: #d46d0d;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    height: 45px;
}

.login-btn:hover {
    background-color: #e56c00;
}

.register-btn {
    background-color: white;
    color: #d46d0d;
    border: 2px solid #ff7a00;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    height: 45px;
    margin-left: 10px;
}

.register-btn:hover {
    background-color: #f8f7f7;
}


/* Hero Section */
.hero {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 80px 50px 50px 50px;
    gap: 40px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 13px;
    color: #ff7a00;
    background-color: rgb(243, 222, 195);
    width: fit-content;
    margin-bottom: 20px;
}

.hero-badge .heart-img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    filter: invert(46%) sepia(95%) saturate(470%) hue-rotate(350deg) brightness(102%) contrast(101%);
}

.hero-text h1 {
    font-size: 40px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.2;
}

.hero-text p {
    font-size: 22px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-btn {
    background-color: #ff7a00;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #e56c00;
}

.hero-btn-outline {
    background-color: white;
    color: #ff7a00;
    border: 2px solid #ff7a00;
}

.hero-btn-outline:hover {
    background-color: #ff7a00;
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    position: relative;
    min-width: 0;
    margin-top: 80px;
}

.hero-image .slide {
    position: absolute;
    width: 100%; 
    height: 100%; 
    border-radius: 20px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    cursor: pointer;
}

.hero-image .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.stat h2 {
    font-size: 28px;
    margin: 0;
    color: #ff7a00;
}

.stat p {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: #555;
}

/* Sections */
section {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50;
    font-size: 32px;
}

section p {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/*About Our Shelter*/

.about-extra {
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: center;
}

.about-extra p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}

.about-highlights {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.about-highlights span {
    background: linear-gradient(135deg, #ff7a00, #ff9500);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

/* Pet cards */

.pets-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.pet-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.pet-card {
    background-color: white;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.pet-card img {
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
}

.pet-card h3 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: #333;
}

.pet-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Adopt list */
#adopt ol {
    max-width: 400px;
    margin: auto;
    font-size: 18px;
    text-align: left;
}

#adopt ol li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.contact-item {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h3 {
    font-size: 20px;
    color: #ff7a00;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 80px 30px 30px 30px;
    }

    .hero-text {
        padding: 0;
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image {
        height: 300px;
        margin-left: 0;
        margin-top: 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .login-btn {
        padding: 8px 18px;
        font-size: 14px;
    }

    .nav-logo .logo {
        height: 40px;
    }

    section {
        padding: 40px 20px;
    }

    section h2 {
        font-size: 24px;
    }

    .pet-container {
        gap: 20px;
    }

    #adopt ol {
        font-size: 16px;
    }

    .navbar {
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 90px; 
        gap: 10px;
    }
    
    .nav-logo {
        order: 1;
    }
    
    .nav-links {
        position: static;
        transform: none;
        order: 2;
        display: flex;
        gap: 15px;
        margin: 0;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .nav-button {
        order: 3;
        margin: 0;
        display: flex;
        gap: 12px;
    }
    
    .login-btn, .register-btn {
        padding: 10px 20px;
        font-size: 14px;
        height: 44px;
        flex: 1;
        max-width: 120px;
    }
    
    .register-btn {
        margin-left: 0;
    }

    .charts-container {
        grid-template-columns: 1fr; /* 1 po redu na mobu */
    }

    .charts-container canvas {
        height: 50vh !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 15px 15px;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    section {
        padding: 30px 15px;
    }

    .pet-container {
        flex-direction: column;
        align-items: center;
    }

    .pet-card {
        width: 100%;
        max-width: 300px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .charts-container {
        grid-template-columns: 1fr; /* 1 po redu na mobu */
    }

    .charts-container canvas {
        height: 50vh !important;
    }
}


/* register i login*/
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffefef 0%, #fef5e7 50%, #f0f8ff 100%);
    padding: 20px;
}

.auth-container {
    display: flex;
    max-width: 1600px;
    width: 100%;
    height: 800px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,0.3);
    background: white;
}

.auth-panel {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-panel {
    background: linear-gradient(135deg, #ffefef 0%, #fef5e7 50%);
}

.register-panel {
    background: linear-gradient(135deg, #fef5e7 0%, #f0f8ff 100%);
}

.register-call, .login-call {
    background: linear-gradient(135deg, #ff7a00, #ff9500);
    color: white;
    text-align: center;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.register-call h1, .login-call h1 {
    color: white !important;
    margin-bottom: 20px;
}

.auth-header p, .register-call p, .login-call p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0 0 35px 0;
}

.register-call p, .login-call p {
    color: rgba(255,255,255,0.95) !important;
    margin-bottom: 40px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(46%) sepia(95%) saturate(470%) hue-rotate(350deg) brightness(102%) contrast(101%);
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.auth-form input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid #ecf0f1;
    border-radius: 16px;
    font-size: 16px;
    background: #fdfdfd;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff7a00;
    background: white;
    box-shadow: 0 0 0 4px rgba(255,122,0,0.15);
}

.forgot-link {
    display: inline-block;
    color: #ff7a00;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 28px;
}

.auth-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9500 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255,122,0,0.3);
}

.auth-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,122,0,0.45);
}

.auth-btn.secondary {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(10px);
}

.auth-btn.secondary:hover {
    background: white;
    color: #ff7a00;
}


.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 14px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    border-color: #ff7a00;
    transform: translateY(-2px);
}

.auth-form .input-group {
    position: relative;
}

.auth-form input {
    width: 100%;
    padding: 18px 20px !important; 
    border: 2px solid #ecf0f1;
    border-radius: 16px;
    font-size: 16px;
    background: #fdfdfd;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff7a00;
    background: white;
    box-shadow: 0 0 0 4px rgba(255,122,0,0.15);
}

/* STATISTICS SECTION */

#statistics {
    background-color: #fff7f0;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 300px; /* još manja širina */
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    font-size: 18px; /* manji naslov */
    text-align: center;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.modal-content label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 13px;
    color: #444;
    margin-bottom: 10px; /* razmak između polja */
}

.modal-content select,
.modal-content input {
    margin-top: 4px;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal-content .close {
    align-self: flex-end;
    font-size: 22px;
    cursor: pointer;
}

#predictBtn {
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 12px;
    cursor: pointer;
    background: #ff7a00;
    color: white;
    border: none;
    margin-bottom: 20px;
    transition: background 0.3s;
}

#predictBtn:hover {
    background: #e56c00;
}

/* Responsive za male ekrane */
@media (max-width: 400px) {
    .modal-content {
        max-width: 90%;
        padding: 15px 20px;
    }

    .modal-content h2 {
        font-size: 18px;
    }

    .modal-content label {
        font-size: 13px;
    }

    .modal-content select,
    .modal-content input {
        font-size: 13px;
        padding: 7px 9px;
    }

    #predictBtn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

.close {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.stats-overview {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stats-overview p {
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    font-size: 18px;
    font-weight: 600;
    color: #444;
}

.stats-overview span {
    color: #ff7a00;
    font-size: 22px;
    font-weight: 700;
}


/* CHART GRID */
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    justify-items: center;
}

.charts-container canvas {
    width: 100% !important;
    max-width: 750px;
    height: 600px !important;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}


@media (max-width: 900px) {
    .charts-container {
        grid-template-columns: 1fr; /* 1 po redu na mobu */
    }

    .charts-container canvas {
        height: 300px !important;
    }
}


@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        margin: 20px;
    }
    .auth-panel {
        padding: 40px 30px;
    }
    
    .charts-container {
        grid-template-columns: 1fr; /* 1 po redu na mobu */
    }

    .charts-container canvas {
        height: 50vh !important;
    }
}




