/* Kalendarz terminów - Frontend */

.drone-calendar-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.calendar-filters-frontend {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.filter-row label:hover {
    background: #e9ecef;
}

.filter-row input[type="radio"] {
    margin: 0;
}

#company-nip-section {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

#company-nip-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

#verify-nip-btn {

}

.calendar-filters-frontend input{
  margin: 0;
}

#calendar-go-btn-frontend{
    margin-bottom: -3px;
}

#nip-status {
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

.calendar-container-frontend {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 400px;
}

.calendar-grid-frontend {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-grid-frontend table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid-frontend thead tr {
    background: #007cba;
    color: #fff;
}

.calendar-grid-frontend th {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}

.calendar-grid-frontend td {
    padding: 10px;
    border: 1px solid #dee2e6;
    vertical-align: top;
    min-height: 120px;
    background: #fff;
}

.calendar-grid-frontend td:hover {
    background: #f8f9fa;
}

.day-events-frontend {
    font-size: 12px;
}

.event-item-frontend {
    margin-bottom: 6px;
    padding: 6px;
    background: #e7f3ff;
    border-left: 3px solid #007cba;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.event-item-frontend:hover {
    background: #d0e7ff;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.register-btn-frontend {
    width: 100%;
    padding: 4px;
    font-size: 10px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.register-btn-frontend:hover {
    background: #005a87;
}

.events-list-frontend {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.events-list-items {
    padding: 20px;
}

.event-card-frontend {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.event-card-frontend:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.register-btn-frontend-list {
    padding: 12px 24px;
    font-size: 16px;
    white-space: nowrap;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.register-btn-frontend-list:hover {
    background: #005a87;
}

.calendar-loading {
    text-align: center;
    padding: 40px;
}

#event-detail-modal-frontend {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#event-detail-modal-frontend > div {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

#close-modal-frontend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#close-modal-frontend:hover {
    color: #000;
}

.register-btn-modal {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.register-btn-modal:hover {
    background: #005a87;
}

/* Responsywność */
@media (max-width: 768px) {
    .calendar-grid-frontend th,
    .calendar-grid-frontend td {
        padding: 5px;
        font-size: 12px;
    }
    
    .event-item-frontend {
        font-size: 10px;
        padding: 4px;
    }
    
    .event-card-frontend {
        flex-direction: column;
    }
    
    .register-btn-frontend-list {
        width: 100%;
        margin-top: 10px;
    }
}
