/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding-top: 60px; /* To make room for the fixed menu */
}

/* Menu styles */
.menu {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #007bff;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.menu a:hover {
    text-decoration: underline;
}

/* Container styles */
.container {
    background-color: white;
    padding: 40px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

h1, h2 {
    color: #333;
}

/* Consistent styling for all input fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    font-family: inherit;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

textarea {
    resize: vertical; /* Allow vertical resize */
}

/* Consistent styling for all buttons */
button,
input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover,
input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Event section */
.event {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

.event p {
    margin-bottom: 10px;
}

hr {
    border: 1px solid #ccc;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
}

/* Links within events */
.event a {
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}

.event a:hover {
    text-decoration: underline;
}

.event a.razposlji {
    color: #28a745; /* Green color for Razpošlji */
    font-weight: bold;
}

/* Cancel button styling */
.cancel-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 16px;
}

.cancel-button:hover {
    background-color: #c82333;
}

/*za tabelo*/
/* Styled table */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 18px;
    text-align: left;
}

.styled-table thead tr {
    background-color: #007bff;
    color: white;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #007bff;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

.edit-button {
    color: #007bff;
    text-decoration: none;
}

.edit-button:hover {
    text-decoration: underline;
}

.disabled-link {
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

.dodeljeni-clani {
    margin: 10px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.dodeljeni-clani .clan {
    margin: 5px 0;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid transparent;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.dodeljeni-clani-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dodeljeni-clani {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dodeljeni-clani .clan {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

h3 {
    color: #495057;
    margin-bottom: 15px;
}

.dodeljeni-clani-list {
    width: 100%;
}

.clan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #dee2e6;
}

.clan-row:last-child {
    border-bottom: none;
}

.clan-info {
    flex-grow: 1;
}

.remove-clan-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.remove-clan-btn:hover {
    background-color: #c82333;
}

/* Splošni container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Wrapper za vsebino */
.content-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

/* Naslov */
h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Container za tabelo */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

/* Stilizacija tabele */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 14px;
}

.styled-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.styled-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.styled-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Povezave za sortiranje */
.sort-link {
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-link:hover {
    color: #007bff;
}

.sort-icon {
    margin-left: 5px;
    font-size: 12px;
}

/* Gumbi v meniju */
.menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.menu-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: #0056b3;
}

/* Gumb za podrobnosti */
.btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive design */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
    }
    
    .styled-table {
        font-size: 13px;
    }
    
    .styled-table th,
    .styled-table td {
        padding: 8px;
    }
}