@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #1e3a8a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    padding: 20px;
}

.container {
    background: #ffffff;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.logout-button {
    background: red;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.logout-button:hover {
    background: #a93226;
}

/* Gumb profila */
.profile-button {
    background: #1e3a8a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.profile-button:hover {
    background: #0d2563;
}

/* Naslovi */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e3a8a;
    margin: 15px 0;
    text-align: left;
    width: 100%;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 5px;
}

/* Drevesni pogled */
.tree-container {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    text-align: left;
}

/* Skriti elementi */
.hidden {
    display: none;
}

/* Mape */
.folder {
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    display: block;
    padding: 5px 0;
}

/* Popravljena vertikalna poravnava imena odprte mape */
.folder.open {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 5px;
}

.folder.open .folder-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Popravljena poravnava ikon za brisanje pri odprtih mapah */
.folder.open + .file {
    padding-left: 20px; /* Ohrani skladnost z ostalimi datotekami */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Datoteke */
.file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Zagotovi, da se vsi elementi poravnajo pravilno */
    padding-left: 20px;
    padding-right: 0px;
}

/* Povezave na datoteke - brez podčrtovanja */
.file-link {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 500;
}

.file-link:hover {
    color: #0d2563;
}

/* Ikona za brisanje */
.delete {
    color: red;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    margin-left: auto;
}

.delete:hover {
    color: darkred;
}

/* Obrazec za nalaganje */
.upload-form {
    width: 100%;
    padding: 15px;
    background: #f1f3f5;
    border-radius: 8px;
}

.folder-select, input[type="file"], button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    background: #1e3a8a;
    color: white;
    cursor: pointer;
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1e3a8a;
}

.register-box {
    background: #ffffff;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.register-box h2 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.register-box input, .register-box select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.register-box button {
    width: 100%;
    padding: 10px;
    background: #1e3a8a;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.register-box button:hover {
    background: #0d2563;
}

.login-link {
    margin-top: 10px;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1e3a8a;
}

.login-box {
    background: #ffffff;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: #1e3a8a;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.login-box button:hover {
    background: #0d2563;
}

.register-link {
    margin-top: 10px;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.reset-link {
    color: #d32f2f;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

.reset-link:hover {
    text-decoration: underline;
}

.reset-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1e3a8a;
}

.reset-box {
    background: #ffffff;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.reset-box h2 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.reset-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.reset-box button {
    width: 100%;
    padding: 10px;
    background: #1e3a8a;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.reset-box button:hover {
    background: #0d2563;
}

.login-link {
    margin-top: 10px;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.admin-container {
    width: 80%;
    margin: 50px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.admin-container h2 {
    color: #1e3a8a;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #1e3a8a;
    color: white;
}

td select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

td a {
    color: red;
    text-decoration: none;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1e3a8a;
}

.login-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 400px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-link {
    color: blue;
    font-weight: bold;
}

.tree-container {
    text-align: left;
    margin-top: 10px;
}

button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #0d2563;
}

.input-field {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.button-primary {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.button-primary:hover {
    background: #0d2563;
}

/* Ikona za brisanje map (poravnana desno in rdeče obarvana) */
.delete-folder {
    color: red;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    margin-left: auto;
    float: right;
}

.delete-folder:hover {
    color: darkred;
}

/* Zamik podmap in datotek v drevesni strukturi */
.directory {
    list-style-type: none;
    padding-left: 20px; /* Osnovni zamik za glavno raven */
}

.directory .directory {
    padding-left: 20px; /* Dodatni zamik za podmape */
}

.directory .file {
    padding-left: 20px; /* Zamik za datoteke */
}
