/* Title area styles */
.title-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: 100%;
}

/* Home header logo styles */
.home-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
}

.home-header-logo:hover {
    color: #1565c0;
}

.title-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0;
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.title-main {
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    line-height: 1.2;
}

.title-sub {
    font-size: 12px;
    font-weight: 400;
    color: inherit;
    opacity: 0.7;
    line-height: 1.2;
    margin-top: 0;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.title-bar {
    color: black;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
    border: 1px #1565c0 solid;
}

/* Filter styles */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
}

.filter-btn {
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-btn.active {
    background: #0d47a1;
}

.filter-btn .selected-value {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-popup {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 10;
    min-width: 150px;
    margin-top: 5px;
    display: none;
}

/* Result styles */
.result-item {
    background-color: white;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lottery-name {
    color: #00b4d8;
    text-align: center;
    font-size: 14px;
    margin-bottom: 5px;
}

.lottery-number {
    color: #1565c0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 5px 0 5px;
}

.draw-time {
    color: #666;
    text-align: center;
    font-size: 12px;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.action-btn {
    background-color: #1565c0;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.results-link {
    color: #00b4d8;
    text-align: center;
    display: block;
    margin-top: 5px;
    text-decoration: none;
    font-size: 13px;
}

/* Filter area styles */
.filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-options {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    width: 100%;
}

.filter-option {
    position: relative;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.filter-option.active {
    color: #1565c0;
}

.filter-option::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    margin-left: 8px;
}

/* Dropdown styles */
.dropdown-group {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 120px;
    z-index: 10;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-group::-webkit-scrollbar {
    width: 6px;
}

.dropdown-group::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-group::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.dropdown-group::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.dropdown-item {
    padding: 8px 15px;
    color: #666;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.filter-option.active .dropdown-group {
    display: block;
}

/* Series list styles */
.series-list-container {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: none;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    overflow-y: auto;
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

.series-item {
    display: inline-block;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.series-item:not(:last-child)::after {
    content: '|';
    margin-left: 6px;
    color: #ccc;
}

.series-item:hover {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.series-item.highlighted {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

/* Pagination styles */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.page-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    color: #333;
    background-color: #fff;
    text-decoration: none;
    padding: 0 10px;
}

.page-item.active {
    background-color: #1565c0;
    color: white;
    border-color: #1565c0;
}

.page-item.disabled {
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    pointer-events: none;
}

/* Date picker styles */
.date-picker {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    margin-bottom: 8px;
    font-size: 14px;
}

.time-selector-container {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 10px;
    width: 280px;
    display: none;
}

/* Result item styles */
.lottery-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    height: 150px !important;
}

.matka-name {
    color: #0099ff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 5px;
}

.matka-number {
    color: #1565c0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 5px 0 5px;
}

.matka-time {
    color: #666;
    font-size: 12px;
    text-align: center;
    margin-bottom: 5px;
}

.matka-date {
    display: none;
}

/* Card footer styles */
.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
}

.right-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-btn {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    color: white;
}

.btn-results {
    background: transparent;
    color: #0099ff;
    border: none;
    padding-left: 0;
}

.btn-live {
    background: #1565c0;
}

.btn-tips {
    background: #1565c0;
}

.btn-panel {
    background: #1565c0;
}

.btn-jodi {
    background: #0d47a1;
}

/* Filter header styles */
.filter-header {
    display: flex;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffddee;
    border: 1px solid #ddd;
}

.filter-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #0099ff;
}

/* Dropdown menu styles */
#series-dropdown {
    position: fixed;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 9999;
    width: 180px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 0;
    margin: 0;
}

.dropdown-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #f5f5f5;
}

.dropdown-option.selected {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Results container */
#results-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .title-logo {
        width: 90px;
        height: 90px;
    }
    
    .home-header-logo {
        gap: 8px;
    }
    
    .title-main {
        font-size: 16px;
    }
    
    .title-sub {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .title-logo {
        width: 90px;
        height: 90px;
    }
    
    .home-header-logo {
        gap: 6px;
    }
    
    .title-main {
        font-size: 14px;
    }
    
    .title-sub {
        font-size: 10px;
    }
    
    .card-btn {
        padding: 5px 8px;
    }
}

@media screen and (max-width: 400px) {
    .card-btn {
        padding: 4px 6px;
    }
    
    .right-buttons {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 350px) {
    .card-btn {
        padding: 3px 5px;
        margin: 1px;
    }
    
    .card-footer {
        padding: 5px;
    }
}

@media (max-width: 600px) {
    .time-selector-container {
        left: -100px;
    }
}

.lottery-logo {
    position: absolute;
    left: 25px;
    top: 30px;
    width: 60px;
    height: 60px;
}

.lottery-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lottery-card {
    position: relative;
}

.matka-name {
    text-align: center;
}

.matka-name a {
    color: inherit;
    text-decoration: none;
}

.matka-name a:hover {
    color: #1565c0;
}
.matka-name a {
    padding-bottom: 2px;
    border-bottom: 1px solid #2190F3;
}