/* Mob Database CSS */
.mob-database-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.mob-database-header {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.mob-database-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mob-database-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.mob-search-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mob-search-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.mob-search-input {
    flex: 1;
    min-width: 200px;
}

.mob-search-input input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mob-search-input input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
    outline: none;
}

.mob-search-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Datalist options styling */
.mob-search-input datalist option {
    background-color: #1a1e24 !important;
    background: #1a1e24 !important;
    color: #ffffff !important;
}

.mob-filter-select {
    min-width: 150px;
}

.mob-filter-select select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mob-filter-select select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
    outline: none;
}

/* Select dropdown options styling - daha güçlü */
.mob-filter-select select option {
    background-color: #1a1e24 !important;
    background: #1a1e24 !important;
    color: #ffffff !important;
    padding: 10px;
}

.mob-filter-select select option:hover {
    background-color: rgba(74, 144, 226, 0.3) !important;
    background: rgba(74, 144, 226, 0.3) !important;
}

.mob-filter-select select option:checked,
.mob-filter-select select option:focus,
.mob-filter-select select option[selected] {
    background-color: #4a90e2 !important;
    background: #4a90e2 !important;
    color: #ffffff !important;
}

.mob-table-container {
    background: transparent;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mob-table {
    background: transparent;
    color: #ffffff;
    width: 100%;
    border-collapse: collapse;
}

.mob-table th {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.9rem;
}

.mob-table td {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #ffffff;
}

.mob-table tbody tr {
    transition: all 0.2s ease;
}

.mob-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.05);
}

.mob-table tbody tr:hover td {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

.mob-element-icons {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.mob-element-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.mob-element-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.mob-element-fire { 
    background-image: url('/mob_db/img/fire.png');
    background-color: rgba(255, 107, 107, 0.2);
}
.mob-element-ice { 
    background-image: url('/mob_db/img/ice.png');
    background-color: rgba(116, 185, 255, 0.2);
}
.mob-element-wind { 
    background-image: url('/mob_db/img/wind.png');
    background-color: rgba(0, 184, 148, 0.2);
}
.mob-element-earth { 
    background-image: url('/mob_db/img/earth.png');
    background-color: rgba(253, 203, 110, 0.2);
}
.mob-element-dark { 
    background-image: url('/mob_db/img/dark.png');
    background-color: rgba(108, 92, 231, 0.2);
}
.mob-element-elect { 
    background-image: url('/mob_db/img/elect.png');
    background-color: rgba(253, 203, 110, 0.2);
}
.mob-element-none {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mob-stats-link {
    color: #4a9eff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 6px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.mob-stats-link:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: #4a9eff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.mob-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #ffffff;
}

.mob-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(74, 158, 255, 0.1);
}

.mob-modal-title {
    color: #ffffff;
    font-weight: bold;
}

.mob-modal-body {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.mob-modal-body p {
    margin-bottom: 10px;
    color: #ffffff;
}

.mob-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(74, 158, 255, 0.05);
}

.mob-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.mob-pagination button {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.mob-pagination button:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-color: #4a90e2;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(74, 144, 226, 0.3);
}

.mob-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mob-pagination span {
    color: #ffffff;
    font-weight: 600;
}

.mob-loading {
    text-align: center;
    padding: 40px;
    color: #ffffff;
    font-size: 1.2rem;
}

.mob-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #4a9eff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mob-error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
    font-size: 1.1rem;
}

.mob-error i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Mob Database Modal Styles */
.mob-database-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.mob-database-modal.show {
    display: flex;
}

.mob-database-modal-content {
    background: linear-gradient(135deg, #1a1e24 0%, #232b3a 100%);
    color: #eee;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 25px;
    width: 92%;
    max-width: 1300px;
    max-height: 88vh;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(74, 144, 226, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1) translateY(0);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.mob-database-modal-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mob-database-modal-title {
    color: #ffd700;
    font-weight: 700;
    margin: 0;
    font-size: 1.4em;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    flex: 1;
}

.mob-database-modal-close {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.mob-database-modal-close:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
    color: #ff4757;
}

.mob-database-modal-body {
    padding: 15px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Custom Scrollbar for Main Modal */
.mob-database-modal-body::-webkit-scrollbar {
    width: 8px;
}

.mob-database-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.mob-database-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 10px;
}

.mob-database-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5ba0f2, #4a90e2);
}

/* Mob Stats Detail Modal */
.mob-stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.mob-stats-modal.show {
    display: flex;
}

.mob-stats-modal-content {
    background: linear-gradient(135deg, #1a1e24 0%, #232b3a 100%);
    color: #eee;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 25px;
    width: 88%;
    max-width: 1000px;
    max-height: 88vh;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(74, 144, 226, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1) translateY(0);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mob-stats-modal-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mob-stats-modal-title {
    color: #ffd700;
    font-weight: 700;
    margin: 0;
    font-size: 1.3em;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    flex: 1;
}

.mob-stats-modal-close {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.mob-stats-modal-close:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
    color: #ff4757;
}

.mob-stats-modal-body {
    padding: 15px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Custom Scrollbar */
.mob-stats-modal-body::-webkit-scrollbar {
    width: 8px;
}

.mob-stats-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.mob-stats-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 10px;
}

.mob-stats-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5ba0f2, #4a90e2);
}

.mob-stats-table-container {
    width: 100%;
    padding: 15px;
}

.mob-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 30, 36, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.mob-stats-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mob-stats-table tr:last-child {
    border-bottom: none;
}

.mob-stats-table td {
    padding: 10px 15px;
    text-align: left;
    vertical-align: middle;
}

.mob-stats-table .stat-label {
    color: #b0b0b0;
    font-weight: 600;
    font-size: 0.9rem;
    width: 40%;
    background: rgba(0, 0, 0, 0.2);
}

.mob-stats-table .stat-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    width: 10%;
    text-align: right;
    background: rgba(0, 0, 0, 0.1);
}

.mob-stats-table .section-header {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(53, 122, 189, 0.2) 100%);
    color: #4a90e2;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 2px solid rgba(74, 144, 226, 0.3);
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.mob-stats-table tr:hover td {
    background: rgba(74, 144, 226, 0.08);
}

.mob-stats-section {
    margin-bottom: 20px;
}

.mob-stats-section-title {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.2));
}

/* Responsive Design */
@media (max-width: 768px) {
    .mob-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mob-search-input,
    .mob-filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .mob-table-container {
        padding: 10px;
        overflow-x: auto;
    }
    
    .mob-table {
        font-size: 0.9rem;
    }
    
    .mob-table th,
    .mob-table td {
        padding: 8px 5px;
    }
    
    .mob-database-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .mob-database-container {
        padding: 10px 0;
    }
    
    .mob-search-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .mob-table {
        font-size: 0.8rem;
    }
    
    .mob-stats-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Table Info Text - Override Bootstrap's text-muted */
#tableInfo,
.mob-database-modal #tableInfo,
.mob-database-modal .text-muted {
    color: #ffffff !important;
    opacity: 0.8;
    font-weight: 500;
}

.mob-database-modal .text-center {
    color: #ffffff;
}
