/* Resetovanje osnovnih stilova */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Arial', sans-serif;
    color: #333;
    text-align: center;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Navigacija */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007bff;
    padding: 10px 20px;
    color: white;
}

.navbar div {
    display: flex;
    align-items: center;
    gap: 20px; /* Razmak između elemenata unutar grupe */
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px; /* Razmak između linkova */
    font-size: 14px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.search-container {
    display: flex;
    align-items: baseline;
    gap: 10px; /* Razmak između polja i dugmeta */
}

.search-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.search-button {
    padding: 12px 24px;
    border: none;
    -webkit-border-radius: 4px; /* Safari */
    -moz-border-radius: 4px; /* Firefox */
    border-radius: 4px; /* Standard */
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0056b3;
}

/*Veliko slovo*/
.capitalize {
    text-transform: capitalize;
}

/* Registracija, prijava, mediji */
.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.form-container input,
.form-container button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.form-container input:focus,
.form-container button:focus {
    outline: none;
    border-color: #007bff;
}

.form-container button {
    background-color: #28a745;
    color: white;
    cursor: pointer;
    border: none;
}

.form-container button:hover {
    background-color: #218838;
}

/* Tabela medija */
.media-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.media-table th, .media-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap; /* Prevent text wrapping */
}

.media-table th {
    background-color: #007bff;
    color: white;
    position: relative;
}

.media-table th a {
    color: white;
    text-decoration: none;
    margin-left: 5px;
}

.media-table th a i {
    font-size: 12px;
    margin-left: 5px;
}

.media-table tr:hover {
    background-color: #f1f1f1;
}

/* Slike i video */
.media-thumbnail {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* URL input i dugme */
.url-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.copy-btn {
    padding: 8px 12px;
    margin-top: 10px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #bebebe;
}

/* Stilizacija dugmadi za akcije */
.action-link {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #0056b3;
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.register-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 5px;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: #007bff;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.success-message {
    background-color: #28a745;
    color: white;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-message a {
    color: white;
}

.success-message button {
    padding: 5px;
}

.error-message {
    background-color: #dc3545;
    color: white;
    padding: 10px;
    text-align: center;
    margin-top: 20px;
    border-radius: 4px;
}

/* Stilizovanje polja za odabir datoteke */
.file-upload {
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload-label:hover {
    background-color: #0056b3;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination a {
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pagination a.active {
    background-color: #0056b3;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #0056b3;
}
