
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef6fc;
    color: #24364b;
}

/* Prihlásenie */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 40px 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(40, 90, 130, 0.10);
}

.login-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.login-box h1 {
    margin: 0 0 10px;
    color: #23649a;
    font-size: 30px;
}

.login-box p {
    color: #718096;
    margin-bottom: 28px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbddea;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: #3988c7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.login-box button:hover {
    background: #246da8;
}

.error {
    background: #fff0f0;
    color: #c0392b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.login-footer {
    margin-top: 25px;
    color: #9aabba;
    font-size: 12px;
}


/* Hlavná stránka */

.main-header {
    background: white;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #d7ebfa;
}

.main-header h1 {
    margin: 0;
    color: #23649a;
}

.main-header p {
    margin: 6px 0 0;
    color: #8295a8;
}

.logout-btn {
    background: #3988c7;
    color: white;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 8px;
}

.container {
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
}

.year-section {
    margin-bottom: 40px;
}

.year-section h2 {
    color: #23649a;
    border-bottom: 2px solid #d5eafa;
    padding-bottom: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.category-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #24364b;
    border: 1px solid #e0edf7;
    transition: 0.2s;
}

.category-card:hover {
    border-color: #80b9e5;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 34px;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    margin: 0 0 6px;
    color: #286b9e;
}

.category-info span {
    color: #8295a8;
    font-size: 13px;
}

.category-arrow {
    font-size: 28px;
    color: #80b9e5;
}

.main-footer {
    text-align: center;
    padding: 25px;
    color: #91a3b3;
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 20px;
    }
}


/* Kategórie a dokumenty */

.breadcrumb {
    margin-bottom: 25px;
}

.breadcrumb a {
    color: #3988c7;
    text-decoration: none;
    font-weight: bold;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-card {
    background: white;
    border: 1px solid #e0edf7;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.document-icon {
    font-size: 35px;
}

.document-info {
    flex: 1;
}

.document-info h3 {
    margin: 0 0 7px;
    color: #286b9e;
    font-size: 17px;
}

.document-info span {
    color: #8295a8;
    font-size: 13px;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.document-btn {
    display: inline-block;
    background: #3988c7;
    color: white;
    padding: 9px 15px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
}

.document-btn.secondary {
    background: #e8f3fb;
    color: #286b9e;
}

.empty-documents {
    background: white;
    border: 1px solid #e0edf7;
    border-radius: 12px;
    padding: 45px 20px;
    text-align: center;
}

.empty-documents h3 {
    color: #286b9e;
}

.empty-documents p {
    color: #8295a8;
}

@media (max-width: 600px) {
    .document-card {
        flex-wrap: wrap;
    }

    .document-actions {
        width: 100%;
    }

    .document-btn {
        flex: 1;
        text-align: center;
    }
}


/* Upload dokumentov */

.upload-box {
    background: white;
    max-width: 650px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e0edf7;
}

.upload-box h2 {
    color: #23649a;
    margin-top: 0;
    margin-bottom: 25px;
}

.upload-box label {
    display: block;
    font-weight: bold;
    color: #40566c;
    margin: 18px 0 7px;
}

.upload-box input,
.upload-box select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbddea;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}

.upload-hint {
    font-size: 13px;
    color: #8295a8;
}

.upload-submit {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: #3988c7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.upload-submit:hover {
    background: #246da8;
}

.upload-error,
.upload-success {
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.upload-error {
    background: #fff0f0;
    color: #c0392b;
}

.upload-success {
    background: #e8f8ed;
    color: #267542;
}


/* Kompaktná tabuľka dokumentov */

.document-table {
    background: white;
    border: 1px solid #dceaf5;
    border-radius: 10px;
    overflow: hidden;
}

.document-row {
    display: grid;
    grid-template-columns: 55px minmax(150px, 1fr) 110px 190px;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    min-height: 54px;
    border-bottom: 1px solid #e8f0f7;
}

.document-row:last-child {
    border-bottom: none;
}

.document-row:hover {
    background: #f5faff;
}

.pdf-icon {
    display: inline-block;
    background: #fff0f0;
    color: #d64545;
    font-size: 11px;
    font-weight: bold;
    font-style: normal;
    padding: 6px;
    border-radius: 5px;
}

.document-title {
    font-size: 14px;
    font-weight: bold;
    color: #286b9e;
}

.document-date {
    font-size: 13px;
    color: #8295a8;
}

.document-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.document-action {
    background: #3988c7;
    color: white;
    text-decoration: none;
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 12px;
}

.document-action.secondary {
    background: #e8f3fb;
    color: #286b9e;
}

.empty-documents {
    background: white;
    padding: 25px;
    border-radius: 10px;
    color: #8295a8;
    text-align: center;
}

@media (max-width: 600px) {
    .document-row {
        grid-template-columns: 35px 1fr;
        gap: 8px;
    }

    .document-date {
        grid-column: 2;
    }

    .document-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}


/* Administrácia */

.admin-heading {
    color: #23649a;
    margin-bottom: 25px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-card {
    background: white;
    border: 1px solid #dceaf5;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #24364b;
    transition: 0.2s;
}

.admin-card:hover {
    border-color: #80b9e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 90, 130, 0.08);
}

.admin-icon {
    font-size: 38px;
}

.admin-card h3 {
    margin: 0 0 7px;
    color: #286b9e;
}

.admin-card p {
    margin: 0;
    color: #8295a8;
    font-size: 13px;
}

@media (max-width: 600px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-main-btn {
    background: #23649a;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.admin-main-btn:hover {
    background: #174b78;
}

@media (max-width: 600px) {
    .header-actions {
        flex-wrap: wrap;
    }
}

.delete-btn {
    background: #dc5555;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background: #bd3838;
}


/* Správa dokumentov */

.document-filters {
    max-width: 100%;
    margin-bottom: 25px;
    padding: 20px;
}

.document-filters form {
    display: grid;
    grid-template-columns: 100px 1fr 100px 1fr 180px auto;
    align-items: center;
    gap: 12px;
}

.document-filters label {
    margin: 0;
}

.document-filters select {
    width: 100%;
}

.document-filters .upload-submit {
    margin: 0;
    padding: 12px;
}

.clear-filter {
    color: #3988c7;
    text-decoration: none;
    font-size: 13px;
}

.documents-summary {
    margin: 20px 0 12px;
    color: #718096;
    font-size: 14px;
}

.manage-document-row {
    display: grid;
    grid-template-columns: 50px minmax(150px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid #e8f0f7;
}

.manage-document-row:last-child {
    border-bottom: none;
}

.manage-document-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.manage-document-info strong {
    color: #286b9e;
    font-size: 14px;
}

.manage-document-info span {
    color: #8295a8;
    font-size: 12px;
}

.manage-document-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.manage-document-actions form {
    margin: 0;
}

.manage-document-actions button {
    cursor: pointer;
    border: none;
}

@media (max-width: 850px) {
    .document-filters form {
        grid-template-columns: 1fr 1fr;
    }

    .manage-document-row {
        grid-template-columns: 35px 1fr;
    }

    .manage-document-actions {
        grid-column: 2;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .document-filters form {
        grid-template-columns: 1fr;
    }
}

.upload-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.upload-success-actions a {
    display: inline-block;
    text-decoration: none;
}

.upload-success-actions .admin-main-btn {
    font-size: 13px;
}

.upload-success-actions .document-action {
    font-size: 13px;
    padding: 12px 16px;
}






