
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile-first: Base styles for small screens */
body {
    background-color: #fff;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    margin: 0;
    padding: 0px;
}

a {
    color: #000;
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: break-word;
    padding-down: 15px;
}

table {
    border: 1px solid #000;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

th {
    border: 1px solid #000;
    width: 30%;
    padding: 7px; 
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
}

td {
    border: 1px solid #000;
    width: 70%;
    padding: 7px; 
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
}

input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 8px;
}

button {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: #ccc;
    color: #000;
    border: 1px solid #000;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
}

button:hover {
    background: #aaa;
}

.header {
    text-align: center;
    font-weight: bold;
}

.container {
    margin: auto;
    width: 100%;
    max-width: 600px;
}

.results th {
    background: #eee;
    color: #000;
}

form {
    display: flex;
    flex-direction: column;
}

.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
}

.menu {
    text-align: center;
    margin: 10px 0;
    font-size: 12px;
}

#cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    z-index: 1000;
    text-align: center;
    font-size: 24px;
    padding-top: 20%;
}

#cookie-overlay button {
    font-size: 20px;
    margin: 10px;
    padding: 15px 30px;
    color: #000;
    background: #ccc;  
    border: none;
    cursor: pointer;
}

#cookie-overlay button.accept {
    background: #ccc;
}

#map {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
}

/* Dodatni sadrÅ¾aj */
.content {
    max-width: 800px;
    margin: 20px auto;
    word-break: break-word; 
    overflow-wrap: break-word;
}



form {
    gap: 15px;
}

.header,
.menu,
.content,
.results,
.footer {
    margin-bottom: 20px;
}

/* Stilizacija osnovnog teksta */
p {
    margin-bottom: 10px; 
    line-height: 1.4;     
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

li {
    margin-bottom: 5px;
}

/* Media queries for larger screens */
@media (min-width: 600px) {
    input {
        width: auto;
        margin-bottom: 0;
    }
    button {
        width: auto;
    }
    form {
        flex-direction: row;
        gap: 10px;
    }
    .container {
        width: 80%;
    }
    a {
        word-break: normal;
    }
    td, th {
        word-break: normal;
    }
}


/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #FFFFFF;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    background: #FFFFFF;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    max-width: 250px;
    height: auto;
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: block;
    background: transparent;
    color: #000;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}

nav {
    display: none;
    background: #FFFFFF;
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    padding: 1rem;
}

nav ul li {
    margin: 0.5rem 0;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

/* Search Toggle for Mobile */
.search-toggle {
    display: block;
    background: transparent;
    color: #000;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.site-search {
    display: none;
    background: #FFFFFF;
    position: absolute;
    top: 2.5rem;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
}

.site-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.site-search-results {
    list-style: none;
}

.site-search-results li {
    margin: 0.5rem 0;
}

/* Main Layout */
main {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    order: 1;
    padding-top: 1rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.sidebar a {
    color: #000;
    text-decoration: none;
    font-weight: normal;
}

.sidebar h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #000;
}

.content {
    flex: 1;
}

/* Search Bar (index.php specific) */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.search-bar input {
    padding: 0.5rem;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* IP Display (shared) */
.ip-display {
    background: #f2f2f2;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ip-display h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.ip-display p {
    margin: 0.5rem 0;
    font-weight: bold;
}

.ip-display .explore {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    margin-top: 1rem;
}

.ip-display .copy-icon {
    cursor: pointer;
    margin-left: 10px;
    color: #666;
}

/* Provider Cards (shared) */
.provider-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.provider-content {
    display: flex;
    flex-direction: column;
}

.provider-details {
    flex: 1;
}

.provider-map {
    height: 400px;
    margin-top: 1rem;
    width: 100%;
}

table.results {
    width: 100%;
    border-collapse: collapse;
}

table.results th,
table.results td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table.results th {
    background-color: #f2f2f2;
    width: 40%;
}

table.results td {
    width: 60%;
}

/* Browser Location Button (my-location.php specific) */
.browser-location-btn {
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.location-instructions {
    font-size: 0.9rem;
    color: #333;
    margin-top: 0.5rem;
}

.location-instructions a {
    color: #000;
    text-decoration: underline;
}

.accuracy-note {
    font-size: 0.8rem;
    color: #888;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

/* Notification */
#copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

/* Media Queries for Desktop */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    nav {
        display: block;
        position: static;
        box-shadow: none;
    }

    nav ul {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    nav ul li {
        margin: 0 1rem;
    }

    main {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        padding-right: 1rem;
        order: 0;
    }

    .content {
        padding-left: 1rem;
    }

    h1 {
        font-size: 1.8rem;
        margin-left: 0;
        text-align: left;
    }

    header {
        justify-content: center;
        text-align: center;
    }

    .sidebar a {
        font-weight: normal;
        font-size: 0.85rem;
    }

    .provider-content {
        flex-direction: row;
        gap: 1rem;
    }

    .provider-details {
        flex: 1;
    }

    .provider-map {
        flex: 1;
        height: 400px;
        margin-top: 0;
    }

    .logo {
        max-width: 300px;
        height: auto;
    }

    .search-toggle {
        display: none;
    }

    .site-search {
        display: none;
    }

}
