/* Center all content */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header Design */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header img {
    height: 50px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* Input Fields */
form input {
    width: 250px;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
}

textarea {
    width: 100%;
/*    resize: vertical; /* Allow user to resize */*/
    resize: none;
/*    padding: 5px;*/
    font-size: 14px;
}

/* Button */
button {
    width: 270px;
    padding: 10px;
    background-color: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #219150;
}

/* Active button */
button:not(.disabled) {
    background-color: #27ae60; /* Green */
    color: white;
}

button:not(.disabled):hover {
    background-color: #219150;
}

/* Disabled button - Red */
button.disabled {
    background-color: red !important;  /* Red background */
    color: white !important;           /* White text */
    cursor: not-allowed;               /* Show "not-allowed" cursor */
    pointer-events: none;              /* Disable clicks */
    opacity: 0.6;                      /* Slight transparency */
    pointer-events: none;              /* Prevents interaction */
}

/* === Action Buttons for sprava_svozu === */
.action-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 18px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 6px;
    margin: 0 3px;
    font-weight: bold;
    color: black;
    background-color: orange;
    transition: all 0.2s ease;
}

.action-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.edit-btn::before {
    content: '';
}

/* Page Content */
.container {
    margin-top: 20px;
    padding: 20px;
}

.text-right{
    text-align: right;
}

/* Center Table */
table {
    width: 10%;
    margin: 20px auto;
    border-collapse: collapse;
}   

/* Table Header and Cell Styling */
th, td {
    padding: 2px;
    border: 0px solid #ccc;
    text-align: left;
}

th {
    background-color: #2c3e50;
    color: white;
}

td {
    text-align: left;
    padding-right: 5px;
}

/* Centering the table container */
.container {
    text-align: center;
}

/* ========== Table Styles for Manage Users ========== */
.users-table {
    width: 60%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #f9f9f9;
}

.users-table th, .users-table td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
}

.users-table th {
    background-color: #34495e;
    color: white;
}

.users-table td {
    background-color: #ecf0f1;
}

/* ========== Table Styles for App Odpady Obyvatele ========== */
.odpady-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: white;
}

.odpady-table th, .odpady-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.odpady-table th {
    background-color: #2c3e50;
    color: white;
}

.odpady-table td {
    background-color: #f8f8f8;
}

/* Delete Icon */
.delete-icon {
    width: 18px;
    height: 18px;
    display: block;
    cursor: pointer;
}

.delete-icon:hover {
    opacity: 0.7;
}

/* Delete Icon Button */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.delete-icon {
    width: 18px;  /* Adjust icon size */
    height: 18px;
    display: block;
    text-align: center;
}

.delete-btn:hover .delete-icon {
    opacity: 0.7; /* Slight fade effect on hover */
}	