/**
 * Otwarte Dane Olsztyn - Style CSS
 */

/* === HEADER === */
.od-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.od-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.od-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* === MODULES GRID (Dashboard) === */
.od-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.od-module-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.od-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--accent-color, #f7941d);
}

.od-module-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color, #f7941d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.od-module-icon i {
    font-size: 28px;
    color: #fff;
}

.od-module-content {
    flex: 1;
}

.od-module-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.od-module-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.od-module-stats {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.od-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color, #f7941d);
}

.od-label {
    font-size: 14px;
    color: #888;
}

.od-module-update {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* === STATS ROW === */
.od-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.od-stat-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.od-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #f7941d;
}

.od-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.od-stat-green .od-stat-value { color: #27ae60; }
.od-stat-red .od-stat-value { color: #e74c3c; }

/* === VIEW TOGGLE === */
.od-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.od-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.od-btn:hover {
    border-color: #f7941d;
    color: #f7941d;
}

.od-btn-active {
    background: #f7941d;
    color: #fff;
    border-color: #f7941d;
}

.od-btn-active:hover {
    background: #e68a15;
    color: #fff;
}

.od-btn-map {
    background: #1a5a96;
    color: #fff;
    border-color: #1a5a96;
    text-decoration: none;
}

.od-btn-map:hover {
    background: #0d4a7a;
    color: #fff;
    border-color: #0d4a7a;
}

/* === FILTERS === */
.od-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.od-filters label {
    font-size: 14px;
    color: #666;
}

.od-select,
.od-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.od-select:focus,
.od-input:focus {
    outline: none;
    border-color: #f7941d;
}

.od-filters-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.od-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.od-search-group form {
    display: flex;
    gap: 8px;
}

/* === CONTENT WRAPPER === */
.od-content-wrapper {
    margin-bottom: 30px;
}

/* === ITEMS GRID === */
.od-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.od-item-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.od-item-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.od-item-card p {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.od-item-card p i {
    width: 16px;
    color: #999;
}

.od-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f7941d;
    text-decoration: none;
    font-size: 14px;
}

.od-link:hover {
    text-decoration: underline;
}

/* === CATEGORY SECTIONS === */
.od-category-section {
    margin-bottom: 30px;
}

.od-category-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f7941d;
}

/* === TABLE === */
.od-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.od-table th,
.od-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.od-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
}

.od-table td {
    font-size: 14px;
    color: #444;
}

.od-table tbody tr:hover {
    background: #fafafa;
}

.od-center {
    text-align: center;
}

.od-green { color: #27ae60; }
.od-red { color: #e74c3c; }

.od-expired {
    opacity: 0.6;
    background: #fff5f5;
}

.od-inactive {
    opacity: 0.6;
    background: #f9f9f9;
}

/* === STATUS BADGES === */
.od-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.od-status-active {
    background: #d4edda;
    color: #155724;
}

.od-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* === MAP === */
.od-map {
    height: 500px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.od-map-large {
    height: 600px;
}

/* === SEARCH BOX === */
.od-search-box {
    max-width: 600px;
    margin: 0 auto 30px;
}

.od-search-wrapper {
    display: flex;
    gap: 8px;
}

.od-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
}

.od-search-input:focus {
    outline: none;
    border-color: #f7941d;
}

.od-search-btn {
    padding: 14px 24px;
    background: #f7941d;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.od-search-btn:hover {
    background: #e68a15;
}

/* === RESULTS INFO === */
.od-results-info {
    padding: 16px;
    background: #e8f4fd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.od-results-info p {
    margin: 0;
    color: #1a5276;
}

.od-no-results {
    background: #fff3cd;
    color: #856404;
}

/* === PLATES GRID === */
.od-plates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.od-plate-card {
    background: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 12px 16px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.od-plate-prefix {
    font-size: 14px;
    color: #666;
}

.od-plate-number {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
}

/* === YEARS STATS === */
.od-years-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.od-year-chip {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.2s;
}

.od-year-chip:hover {
    background: #f7941d;
    color: #fff;
}

.od-year-chip.od-year-active {
    background: #f7941d;
    color: #fff;
}

.od-year-chip span {
    opacity: 0.7;
    font-size: 11px;
}

/* === PAGINATION === */
.od-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.od-page-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.od-page-link:hover {
    border-color: #f7941d;
    color: #f7941d;
}

.od-page-active {
    background: #f7941d;
    color: #fff;
    border-color: #f7941d;
}

/* === INFO BOX === */
.od-info-box {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.od-info-box p {
    margin: 0 0 8px 0;
    color: #1a5276;
}

.od-info-box p:last-child {
    margin-bottom: 0;
}

/* === INFO SECTION === */
.od-info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.od-info-section h2 {
    font-size: 20px;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.od-info-section p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.od-info-section ul {
    margin: 0;
    padding-left: 20px;
}

.od-info-section li {
    color: #666;
    margin-bottom: 8px;
}

.od-info-section a {
    color: #f7941d;
}

/* === WIFI ICON === */
.od-wifi-icon {
    color: #1abc9c;
    margin-right: 8px;
}

/* === LEGEND === */
.od-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-left: auto;
}

.od-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.od-legend-item i {
    color: var(--color);
    font-size: 10px;
}

/* === FILTER FORM === */
.od-filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.od-filter-form .od-select {
    min-width: 200px;
}

/* === MAP MARKERS WITH ICONS === */
.od-marker-icon {
    background: transparent;
    border: none;
}

.od-map-marker {
    position: relative;
    width: 36px;
    height: 42px;
}

.od-map-marker-pin {
    width: 36px;
    height: 36px;
    background: var(--marker-color, #3498db);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: absolute;
    top: 0;
    left: 0;
}

.od-map-marker i {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* === CATEGORY BOXES === */
.od-category-boxes {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.od-category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    min-width: 120px;
    flex: 1;
    max-width: 180px;
}

.od-category-box:hover {
    border-color: var(--cat-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.od-category-box i {
    font-size: 28px;
    color: var(--cat-color);
    margin-bottom: 8px;
}

.od-cat-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 4px;
}

.od-cat-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--cat-color);
}

.od-category-box-active {
    background: var(--cat-color);
    border-color: var(--cat-color);
}

.od-category-box-active i,
.od-category-box-active .od-cat-name,
.od-category-box-active .od-cat-count {
    color: #fff;
}

.od-category-box-reset {
    background: #f8f9fa;
    border-color: #ddd;
    --cat-color: #666;
}

.od-category-box-reset:hover {
    background: #eee;
    border-color: #999;
}

/* === SUBCATEGORY BAR === */
.od-subcategory-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--cat-color);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.od-subcat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.od-subcat-item:hover {
    border-color: var(--cat-color);
    color: var(--cat-color);
}

.od-subcat-item i {
    font-size: 12px;
    color: var(--cat-color);
}

.od-subcat-count {
    font-size: 11px;
    color: #999;
}

.od-subcat-active {
    background: var(--cat-color);
    border-color: var(--cat-color);
    color: #fff;
}

.od-subcat-active i,
.od-subcat-active .od-subcat-count {
    color: #fff;
}

/* === POPUP CATEGORY === */
.od-popup-category {
    font-size: 12px;
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .od-header h1 {
        font-size: 24px;
    }

    .od-modules-grid {
        grid-template-columns: 1fr;
    }

    .od-module-card {
        flex-direction: column;
        text-align: center;
    }

    .od-stats-row {
        flex-direction: column;
    }

    .od-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .od-table {
        font-size: 12px;
    }

    .od-table th,
    .od-table td {
        padding: 8px;
    }

    .od-search-wrapper {
        flex-direction: column;
    }

    .od-map {
        height: 350px;
    }
}
