/**
 * CSS styly pro plugin Dokumenty
 */

/* ===== ZÁKLADNÍ STRUKTURA ===== */
.dp-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dp-item {
    display: flex;
    align-items: center;
}

.dp-item-icon {
    flex-shrink: 0;
    width: 45px;
    margin-right: 15px;
}

.dp-item-icon img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.dp-item:hover .dp-item-icon img {
    transform: scale(1.1);
}

.dp-item-content {
    flex: 1;
    min-width: 0;
}

/* ===== HORNÍ LIŠTA ===== */
.dp-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 6px 10px;
    background-color: #fff;
    border-radius: 4px;
}

/* ===== BREADCRUMBS NAVIGACE ===== */
.dp-breadcrumbs {
    font-size: 14px;
}

.dp-breadcrumb-link {
    color: #0056b3;
    text-decoration: none;
	font-weight: 400;
}

.dp-breadcrumb-link:hover {
    text-decoration: underline;
}

.dp-breadcrumb-link.dp-active {
	font-weight: 600;
    color: #0000ff;
    /*background: #ffffff;
    padding: 2px 6px;
    border: 1px solid #b1b1b1;
    border-radius: 4px;*/
}

/* ===== VYHLEDÁVÁNÍ ===== */
.dp-search-box {
    display: flex;
    align-items: center;
    gap: 0;
}

.dp-search-input {
    border: 1px solid #bbb !important;
    border-radius: 4px 0 0 4px !important;
    padding: 5px 10px !important;
    font-size: 14px;
    border-right: none;
}

.dp-search-input:focus {
    outline: none;
    border-color: #0056b3;
}

.dp-search-button {
    background-color: #2d92ff;
    color: white;
    border: 1px solid #2d92ff;
    border-radius: 0 4px 4px 0;
    padding: 6px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dp-search-button:hover {
    background-color: #005fd4;
    border: 1px solid #005fd4;
}

/* ===== VÝSLEDKY VYHLEDÁVÁNÍ ===== */
.dp-search-header {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f3f8ff;
    border-left: 4px solid #2d92ff;
}

.dp-search-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.dp-clear-search {
    background-color: #fff;
    color: #000;
    border: 1px solid #ff8181;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.dp-clear-search:hover {
    background-color: #fff5f5;
}

/* ===== SLOŽKY ===== */
.dp-folder {
    padding: 6px 0;
}

.dp-folder .dp-item-title a {
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
}

.dp-parent-folder {
    margin-bottom: 10px;
}

/* ===== DOKUMENTY ===== */
.dp-document {
    padding: 10px 0;
}

.dp-document .dp-item-title a {
    color: #0000ff;
    font-size: 18px;
    font-weight: normal;
    text-decoration: none;
}

.dp-document .dp-item-title a:hover {
    text-decoration: underline;
}

.dp-item-info {
    color: #777777;
    font-size: 13px;
    margin-top: 2px;
}

/* ===== ROZLOŽENÍ ===== */
.dp-folder + .dp-document {
    margin-top: 10px;
}

/* ===== LOADING INDIKÁTOR ===== */
.dp-content[data-loading="true"] {
    position: relative;
    pointer-events: none;
    min-height: 120px;
	background-color: transparent;
}

.dp-content[data-loading="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 10;
}

.dp-content[data-loading="true"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2d92ff;
    border-radius: 50%;
    animation: dp-spin 1s linear infinite;
    z-index: 11;
}

@keyframes dp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===== NÁZEV SLOŽKY ===== */
.dp-folder-title-wrapper {
    margin-bottom: 15px;
}

.dp-folder-title {
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #6cc2ff;
    letter-spacing: -0.5px;
}


/* ===== RESPONZIVNÍ DESIGN ===== */
@media (max-width: 768px) {
    .dp-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dp-search-box {
        justify-content: stretch;
    }

    .dp-search-input {
        flex-grow: 1;
    }

    .dp-folder .dp-item-title a,
    .dp-document .dp-item-title a {
        font-size: 16px;
    }

    .dp-item-info {
        font-size: 12px;
    }
}