/* projects.css */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600;700&family=Source+Sans+3:wght@400;500;600&display=swap");

.projects-main {
    padding-top: 24px;
    padding-bottom: 50px;
    height: 100vh;
    overflow-y: auto;
    color: #fff;
}

/* Vlastní posuvník pro <main> */
.projects-main::-webkit-scrollbar {
    width: 8px;
}

.projects-main::-webkit-scrollbar-track {
    background: linear-gradient(rgb(35, 35, 35), rgb(20, 20, 20));
    border-radius: 10px;
}

.projects-main::-webkit-scrollbar-thumb {
    background: linear-gradient(rgb(255, 255, 200), rgb(255, 230, 0));
    border-radius: 10px;
}

.projects-container {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding-left: 60px;
}

.projects-title {
    font-family: "Oswald", "Franklin Gothic Medium", sans-serif;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: #fff;
    text-transform: uppercase;
}

/* Dashboard Summary */
.projects-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    background: linear-gradient(145deg, rgb(24, 24, 24), rgb(15, 15, 15));
    border-radius: 12px;
    border: 1px solid rgba(255, 230, 0, 0.12);
    box-shadow: 0 0 18px rgb(10, 10, 10);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 230, 0, 0.15);
}

.summary-icon {
    font-size: 32px;
    background: rgba(255, 230, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 230, 0, 0.3);
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 14px;
    color: rgb(210, 210, 210);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: rgb(255, 230, 0);
    font-family: "Oswald", "Franklin Gothic Medium", sans-serif;
    margin-top: 4px;
    line-height: 1.2;
}

.value-warning {
    color: rgb(255, 70, 70);
    text-shadow: 0 0 8px rgba(255, 70, 70, 0.4);
}

.projects-section {
    background: linear-gradient(145deg, rgb(24, 24, 24), rgb(15, 15, 15));
    border-radius: 12px;
    border: 1px solid rgba(255, 230, 0, 0.12);
    box-shadow: 0 0 18px rgb(10, 10, 10);
    padding: 24px;
    margin-bottom: 24px;
}

.projects-section h2 {
    font-family: "Oswald", "Franklin Gothic Medium", sans-serif;
    color: rgb(255, 230, 0);
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 230, 0, 0.2);
    padding-bottom: 8px;
    letter-spacing: 1px;
}

/* User Info */
.projects-user-info p {
    margin: 8px 0;
    font-size: 15px;
    color: rgb(220, 220, 220);
}

/* Forms */
.projects-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: rgb(210, 210, 210);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    color-scheme: dark;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgb(255, 230, 0);
    box-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
}

.form-radio-group {
    flex-direction: row;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-radio-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(255, 230, 0);
}

.form-actions {
    margin-top: 10px;
}

.btn-submit {
    background: linear-gradient(270deg, rgb(50, 50, 50), rgb(60, 60, 60));
    color: #fff;
    border: 1px solid rgba(255, 230, 0, 0.3);
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.4s ease-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: linear-gradient(270deg, rgb(5, 5, 5), rgb(10, 10, 10));
    box-shadow: 0 0 10px rgb(255, 230, 0);
    color: rgb(255, 230, 0);
}

/* Controls - Search and Filter */
.projects-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 16px; /* Reduced padding for this section */
}

#filter-toggle-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects-filter-form {
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 230, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.projects-filter-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

.projects-filter-form .form-group label {
    font-size: 13px;
}

.projects-filter-form .form-group select {
    padding: 6px 12px;
    font-size: 13px;
}

.projects-filter-form .btn-submit {
    padding: 8px 16px;
    font-size: 13px;
}

/* Vyhledávání projektů */
.projects-search-container {
    flex-grow: 1;
}

.projects-table-wrapper .projects-search-container {
    margin-bottom: 16px;
}

.projects-search-input {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.projects-search-input:focus {
    border-color: rgb(255, 230, 0);
    box-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
}

/* Table */
.projects-table-wrapper {
    overflow-x: auto;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.projects-table th {
    text-align: left;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid rgba(255, 230, 0, 0.5);
    color: rgb(255, 230, 0);
    font-weight: 600;
    white-space: nowrap;
}

.projects-table th.sortable {
    position: relative;
    padding-right: 20px;
}

.projects-table th.sortable a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.projects-table th.sortable a::after {
    content: ' ';
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -8px;
    border: 4px solid transparent;
    opacity: 0.4;
}

.projects-table th.sortable a.sorted-asc::after {
    border-bottom-color: rgb(255, 230, 0); opacity: 1;
}
.projects-table th.sortable a.sorted-desc::after {
    border-top-color: rgb(255, 230, 0); opacity: 1;
}

.projects-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.projects-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.col-fav a {
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.fav-active { color: rgb(255, 230, 0); }
.fav-inactive { color: rgba(255, 255, 255, 0.2); }
.fav-inactive:hover { color: rgba(255, 230, 0, 0.5); }

/* Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}
.status-založen { background: rgba(50, 150, 255, 0.2); color: rgb(150, 200, 255); border: 1px solid rgb(50, 150, 255); }
.status-vefrontě { background: rgba(255, 150, 0, 0.2); color: rgb(255, 200, 100); border: 1px solid rgb(255, 150, 0); }
.status-vprocesu { background: rgba(255, 230, 0, 0.2); color: rgb(255, 230, 0); border: 1px solid rgb(255, 230, 0); }
.status-hotov { background: rgba(0, 200, 50, 0.2); color: rgb(100, 255, 120); border: 1px solid rgb(0, 200, 50); }
.status-konzultace { background: rgba(200, 50, 255, 0.2); color: rgb(230, 150, 255); border: 1px solid rgb(200, 50, 255); }
.status-zrušen { background: rgba(255, 50, 50, 0.2); color: rgb(255, 150, 150); border: 1px solid rgb(255, 50, 50); }

.priority-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
}
.priority-a { background: rgb(255, 50, 50); color: #fff; box-shadow: 0 0 5px rgb(255, 50, 50); }
.priority-b { background: rgb(255, 150, 0); color: #fff; }
.priority-c { background: rgb(50, 150, 255); color: #fff; }

.col-actions {
    white-space: nowrap;
}

.btn-icon {
    display: inline-block;
    padding: 6px;
    margin: 0 2px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.btn-edit:hover { background: rgb(255, 230, 0); color: #000; }
.btn-delete:hover { background: rgb(255, 50, 50); color: #fff; }

/* Úkoly (To-Do list) */
.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 230, 0, 0.3);
}

.task-item.done {
    opacity: 0.5;
}

.task-item.done .task-header strong {
    text-decoration: line-through;
}

.task-check {
    font-size: 26px;
    line-height: 1;
    text-decoration: none;
    color: rgb(255, 230, 0);
    transition: transform 0.2s;
}

.task-check:hover {
    transform: scale(1.15);
}

.task-item.done .task-check {
    color: #00c832;
}

.task-content {
    flex: 1;
}

.task-header {
    margin-bottom: 4px;
    font-size: 15px;
}

.task-desc {
    font-size: 13px;
    color: rgb(200, 200, 200);
}

.task-actions {
    display: flex;
    align-items: center;
}

.btn-tasks {
    background: rgba(50, 150, 255, 0.2);
    border: 1px solid rgb(50, 150, 255);
}

.btn-tasks:hover {
    background: rgb(50, 150, 255);
    color: #fff;
}

/* Rozbalovací záznamy projektů */
.expand-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 11px;
    color: rgb(255, 230, 0);
    transition: transform 0.2s;
}

.project-details-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid rgb(255, 230, 0);
}

.project-details-container h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: rgb(255, 230, 0);
    font-family: "Oswald", "Franklin Gothic Medium", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-time-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.project-time-table th {
    text-align: left;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    color: rgb(210, 210, 210);
    border-bottom: 1px solid rgba(255, 230, 0, 0.2);
}

.project-time-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-time-table tr:last-child td {
    border-bottom: none;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(145deg, rgb(30, 30, 30), rgb(20, 20, 20));
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 4px solid rgb(0, 200, 50); /* Zelená barva úspěchu */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    opacity: 0;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    font-size: 15px;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: rgb(255, 230, 0);
}