/* ============================================
   ADMIN - VÝPIS SPOLOČNOSTÍ A PONÚK
   ============================================ */

/* ---------- ZÁKLADNÉ ŠTÝLY ---------- */
/* Zabezpečenie správneho zobrazenia ikon */
.offer-icon {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.offer-icon:hover {
    transform: scale(1.1);
}

/* ---------- POLOŽKA SPOLOČNOSTI ---------- */
.city-row-item {
    border-bottom: 1px solid rgb(234, 234, 234);
}

.city-row-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.row-name-position-col {
    min-width: 200px;
    flex: 4 1 0%;
}

.city-row-name {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.city-row-link {
    text-decoration: none;
    color: inherit;
}

.city-row-title {
    font-weight: 500;
    color: #333;
}

.city-row-icon {
    font-size: 18px;
    color: #b9342dab;
}

/* ---------- IČO ---------- */
.city-row-codes-col {
    flex: 2 1 0%;
    min-width: 120px;
}

.city-row-lau {
    color: #666;
    font-size: 14px;
}

/* ---------- POČET PONÚK ---------- */
.city-row-offers-col {
    flex: 1 1 0%;
    text-align: right;
}

.city-row-offers-link {
    display: inline-block;
    background: #d15b47;
    color: #FAFAFA;
    padding: 5px 10px;
    text-decoration: none;
}

.city-row-offers-link:hover {
    background: #94261f;
    color: #FFF;
}

.city-row-offers-number {
    font-weight: bold;
    margin-right: 3px;
}

.city-row-offers-text {
    font-size: 11px;
}

.city-row-arrow {
    margin-left: 5px;
}

/* ---------- KONTAKT ---------- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.contact-col {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.contact-col i {
    width: 20px;
    color: #b9342dab;
}

/* ---------- INFO BOX SPOLOČNOSTI ---------- */
.company-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef
}

.company-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.company-name-address {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.company-name,
.company-address,
.company-ico {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.company-icon {
    color: #b9342dab;
    width: 20px;
    font-size: 16px;
}

.company-contact {
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.contact-icon {
    color: #6c757d;
    width: 18px;
    font-size: 14px;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ---------- PONUKY ---------- */
.offer-item {
    border-bottom: 1px solid rgb(234, 234, 234);
    padding: 12px 5px;
}

.offer-item.expired {
    opacity: 0.6;
}

.offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.offer-name-col {
    flex: 8 1 0%;
    min-width: 200px;
}

.offer-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-name {
    font-weight: 500;
}

/* ---------- ŠTÍTKY AKTÍVNY/EXPIROVANÝ ---------- */
.active-label,
.expired-label {
    color: #fff;
    display: inline-block;
    padding: 5px 10px;
    min-width: 81px;
    font-weight: normal;
    white-space: nowrap;
}

.active-label {
    background: #00B894;
}

.expired-label {
    background: #E74C3C;
}

/* ---------- CENY A DÁTUM ---------- */
.offer-salary-col {
    flex: 2 1 0%;
    min-width: 120px;
}

.offer-salary {
    color: #666;
    font-size: 14px;
}

.offer-date-col {
    flex: 1 1 0%;
    text-align: right;
}

.offer-date {
    color: #999;
    font-size: 13px;
}

/* ---------- IKONY PRE PONUKY ---------- */
.offer-icons-col {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.visible-icon {
    color: #2ecc71;
}

.invisible-icon {
    color: #95a5a6;
}

.fa-spinner {
    color: #3498db;
}

.form-icon {
    color: #3498db;
}

.form-icon:hover {
    color: #2980b9;
}

/* ---------- TLAČIDLO VIDITEĽNOSTI SPOLOČNOSTI ---------- */
.btn-visibility-company {
    transition: all 0.2s ease;
    display: inline-block !important;
}

.btn-visibility-company i {
    transition: transform 0.2s ease;
}

.btn-visibility-company:hover i {
    transform: scale(1.1);
}

/* Viditeľný - ŽLTÁ */
.btn-visibility-company.visible-company {
    background-color: #f0ad4e !important;
    border-color: #eea236 !important;
    color: #FFF !important;
}

.btn-visibility-company.visible-company:hover {
    background-color: #ec971f !important;
    border-color: #d58512 !important;
}

/* Skrytý - SIVÁ */
.btn-visibility-company.hidden-company {
    background-color: #95a5a6 !important;
    border-color: #7f8c8d !important;
    color: #FFF !important;
}

.btn-visibility-company.hidden-company:hover {
    background-color: #7f8c8d !important;
    border-color: #6c7a7a !important;
}

.btn-visibility-company .fa-eye,
.btn-visibility-company .fa-eye-slash {
    color: #FFF !important;
}

/* ---------- TLAČIDLÁ PRE POUŽÍVATEĽOV (ZELENÁ/ČERVENÁ) ---------- */
.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    transform: scale(1.05);
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    transform: scale(1.05);
}

/* ---------- LOADER (SPINNER) ---------- */
.lds-dual-ring.hidden {
    display: none;
}

.overlay {
    position: fixed;
    top: 20%;
    left: 65%;
    width: 100%;
    height: 100vh;
    opacity: 1;
    transition: all 2s;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 200px;
    height: 200px;
    margin: 5% auto;
    border-radius: 50%;
    border: 30px solid #585858;
    border-color: #585858 transparent #585858 transparent;
    animation: lds-dual-ring 2.5s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ---------- DETAIL SPOLOČNOSTI ---------- */
.company-detail {
    padding: 5px 0;
    background: #f9f9f9;
    border-radius: 5px;
    margin: 5px;
}

.company-detail h2 {
    margin-top: 0;
    color: #333;
}

.company-detail p {
    margin: 10px 0;
    line-height: 1.5;
}

/* ---------- TIME LINE ---------- */
.timeline-section {
    margin: 5px 0;
}
.timeline-header {
    background: #F2F2F2;
    padding: 10px 15px
}
.timeline-header h5 {
    margin: 0;
    color: #666;
}
.timeline-header h5 i {
    margin-right: 8px;
}
.timeline-container {
    position: relative;
    padding-left: 30px;
}
.timeline-container:before {
    content: "";
    position: absolute;
    left: 10px !important;
    top: 0;
    bottom: 0;
    width: 2px !important;
    background: #e0e0e0;
}
.timeline-item {
    position: relative;
    margin: 0 0 20px 0;
}
.timeline-item:before {
    content: "";
    position: absolute;
    left: -25px;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #FFF;
    box-shadow: 0 0 0 1px #e0e0e0
}
.timeline-item:hover {
    background: none !important
}

.timeline-date {
    color: #666;
    font-size: 15px;
    margin: 0 0 5px 0
}
.timeline-date i {
    margin-right: 5px
}
.timeline-content {
    background: #fff;
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #e9ecef
}
.timeline-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 5px 0;
}
.timeline-title i {
    margin: 0 8px 0 0;
    color: #666;
}
/* PREPÍSANIE .timeline-info z ace.min.css */
.timeline-info {
    float: none !important;
    width: auto !important;
    text-align: left !important;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    position: static !important;
}
.timeline-info i {
    margin-right: 5px;
}
.empty-timeline {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
}
.empty-timeline i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}
@media (max-width: 768px) {
    .timeline-container {
        padding-left: 20px;
    }
    .timeline-container:before {
        left: 5px;
    }
    .timeline-item:before {
        left: -19px;
    }
}
/* ---------- TIME LINE ---------- */

/* TIMELINE - Štruktúra riadkov (štýly progress bar sú už definované v .progress a .progress-bar) */
.timeline-knowledge-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.timeline-knowledge-name {
    flex: 3;
    font-weight: bold;
}
.timeline-knowledge-level {
    flex: 2;
    color: #666;
}
.timeline-knowledge-progress {
    flex: 2;
}
.timeline-certificate-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.timeline-certificate-name {
    flex: 3;
    font-weight: 500;
}
.timeline-certificate-dates {
    flex: 2;
    color: #666;
}
.knowledge-percent {
    color: #666;
    font-size: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .timeline-knowledge-row, .timeline-certificate-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
/* TIMELINE - KNOWLEDGE ROW (rovnaký štýl ako FLAT) */

/* ---------- TABULKA - cv-ponuka-praca.php ---------- */
.flat-container {
    max-width: 100%;
    margin: 0 auto;
}
.flat-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.flat-section-title {
    background: #f8f9fa;
    padding: 12px 20px;
    margin: 0;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
}
.flat-section-title i {
    margin-right: 10px;
    color: #007bff;
}
.flat-grid {
    padding: 0;
}
.flat-table {
    width: 100%;
}
.flat-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}
.flat-row:last-child {
    border-bottom: none;
}
.flat-label {
    width: 35%;
    padding: 12px 15px;
    background: #fafafa;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #f0f0f0;
}
.flat-label i {
    margin-right: 8px;
    color: #6c757d;
    width: 20px;
}
.flat-value {
    width: 65%;
    padding: 12px 15px;
    color: #212529;
}
/* Benefity v tabuľke */
.flat-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.flat-benefit-badge {
    background: #e8f5e9;
    padding: 4px 10px;

    font-size: 12px;
    color: #2e7d32;
    display: inline-block;
}
.days-left {
    color: #dc3545;
    font-size: 12px;
}
.flat-info-box {
    padding: 15px 20px;
    background: #f8f9fa;
    line-height: 1.5;
    color: #495057;
}
@media (max-width: 768px) {
    .flat-row {
        flex-direction: column;
    }
    .flat-label, .flat-value {
        width: 100%;
    }
    .flat-label {
        border-bottom: 1px solid #f0f0f0;
        border-right: none;
        padding-bottom: 5px;
    }
    .flat-benefits-list {
        margin-top: 5px;
    }
}
/* ---------- TABULKA - cv-ponuka-praca.php ---------- */

/* ---------- HLÁŠENIA (ALERTY) ---------- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

/* ---------- ADMIN Uzivatel do PDF ---------- */
#cv-export-content {
    padding: 20px;
    background: white;
}

/* Pre tlač - skryť nepotrebné elementy */
@media print {
    .sidebar, .footer, #sidebar, .navbar, .breadcrumbs,
    .page-header, .btn, .action-buttons, #debug-panel,
    .col-xs-4, .pagination-wrap, .pagination, .header,
    #exportCV, .no-print {
        display: none !important;
    }
    
    .col-xs-8 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .company-info-box, .timeline-section, .info-box {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    body {
        margin: 0;
        padding: 10px;
        font-size: 11pt;
    }
}
/* ---------- ADMIN Uzivatel do PDF ---------- */
/* ---------- RESPONZÍVNE ÚPRAVY ---------- */
@media (max-width: 768px) {
    .offer-icons-col {
        order: 3;
    }

    .city-row-content,
    .offer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .city-row-offers-col,
    .offer-date-col {
        text-align: left;
    }
    
    .company-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .company-contact {
        flex-direction: column;
        gap: 8px;
    }
}