/* ===================================
   MODERN SMS SERVICES PAGE STYLES
   =================================== */

/* Page Container */
.sms-services-page {
    padding: 60px 0;
    min-height: 100vh;
}

/* Balance Box - Modern Design */
.balance-box {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(123, 192, 67, 0.15));
    border: 2px solid rgba(0, 191, 255, 0.3);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.6s ease;
}

.balance-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.1), transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.balance-box-content {
    position: relative;
    z-index: 1;
}

.balance-box h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-box h2 i {
    font-size: 2rem;
    color: #00bfff;
}

.balance-box p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.sms-services-page .balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00bfff, #7bc043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #00bfff, #7bc043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #00bfff, #7bc043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filter Container */
.filter-container {
    position: relative;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease 0.2s backwards;
}

.filter-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(26, 31, 46, 0.6);
    border: 2px solid rgba(0, 191, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.filter-input:focus {
    outline: none;
    border-color: #00bfff;
    background: rgba(26, 31, 46, 0.8);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.1);
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.filter-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00bfff;
    font-size: 1.2rem;
}

/* Service Table */
.orders-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 31, 46, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-table th,
.service-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-table th {
    background: rgba(0, 191, 255, 0.1);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.service-table th:last-child,
.service-table td:last-child {
    text-align: right;
}

.service-table th:nth-child(3),
.service-table td:nth-child(3) {
    text-align: center;
}

.service-table tr:last-child td {
    border-bottom: none;
}

.service-table tbody tr {
    transition: all 0.3s;
}

.service-table tbody tr:hover {
    background: rgba(0, 191, 255, 0.05);
    transform: translateX(5px);
}

/* Service Name Cell */
.service-name {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 15px;
}

.service-name i {
    font-size: 1.8rem;
    color: #00bfff;
    width: 35px;
    text-align: center;
}

/* Stock Badge */
.stock-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: static !important; /* Override modern-styles.css absolute positioning */
    backdrop-filter: none !important; /* Reset backdrop filter */
    box-shadow: none !important; /* Reset box shadow */
}

.stock-available {
    background: rgba(123, 192, 67, 0.15);
    color: #7bc043;
    border: 1px solid rgba(123, 192, 67, 0.3);
}

.stock-empty {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Price Tag */
.price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00bfff, #7bc043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Buy Button */
.btn-buy {
    background: linear-gradient(135deg, #00bfff, #0080ff);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.btn-buy:hover:not(:disabled) {
    background: linear-gradient(135deg, #0099cc, #0066cc);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.btn-buy:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-login {
    background: linear-gradient(135deg, #7bc043, #059669);
}

.btn-login:hover {
    background: linear-gradient(135deg, #6aa83a, #047857);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    background: rgba(26, 31, 46, 0.6);
    border-radius: 16px;
    border: 2px dashed rgba(0, 191, 255, 0.3);
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 25px;
    display: block;
    color: #00bfff;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 12px 18px;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.pagination a:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: #00bfff;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #00bfff, #0080ff);
    border-color: #00bfff;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Active SMS Button */
.active-sms-btn {
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease 0.4s backwards;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .service-table th,
    .service-table td {
        padding: 14px 16px;
    }
}

@media (max-width: 768px) {
    .balance-box {
        padding: 20px;
    }
    
    .balance-box h2 {
        font-size: 1.4rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Mobile Table */
    .service-table {
        display: block;
    }
    
    .service-table thead {
        display: none;
    }
    
    .service-table tbody {
        display: block;
    }
    
    .service-table tbody tr {
        display: block;
        margin-bottom: 20px;
        background: rgba(26, 31, 46, 0.6);
        border-radius: 12px;
        padding: 20px;
        border: 1px solid rgba(0, 191, 255, 0.2);
    }
    
    .service-table tbody tr:hover {
        transform: none;
    }
    
    .service-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 !important;
        border: none !important;
        text-align: left !important;
    }
    
    .service-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .service-name {
        width: 100%;
        justify-content: flex-start;
    }
    
    .btn-buy {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sms-services-page {
        padding: 30px 0;
    }
    
    .filter-input {
        padding: 14px 16px 14px 50px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* ==================== BUTON VE TABLO HİZALAMA FIX ==================== */

/* --- PC DÜZENLEMESİ --- */
/* Buton sütunu (İşlem) gereksiz genişlemesin */
.service-table td:last-child,
.service-table th:last-child {
    text-align: right;
    white-space: nowrap; /* Buton satır atlamasın */
    padding-right: 24px;  /* Sağdan biraz boşluk bırak */
}

/* Butonu biraz daha kibar yapalım */
.btn-buy {
    padding: 8px 20px; /* Yüksekliği düşür */
    font-size: 0.85rem;
    width: auto; /* PC'de tam genişlik olmasın */
}


/* --- MOBİL DÜZENLEMESİ --- */
@media (max-width: 768px) {
    
    /* Tablo Hücreleri (TD) */
    .service-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* İşlem Satırı (Butonun olduğu yer) */
    .service-table td[data-label="İşlem"] {
        margin-top: 10px;
        padding-top: 15px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important; /* Butonu ayıran çizgi */
        border-bottom: none !important;
        justify-content: center; /* Butonu ortala */
    }

    /* "İşlem" yazısını mobilde gizle (Gereksiz kalabalık) */
    .service-table td[data-label="İşlem"]:before {
        display: none; 
    }

    /* Mobilde Buton Ayarı */
    .service-table .btn-buy {
        width: 100%; /* Tam genişlik */
        max-width: 300px; /* Çok da devasa olmasın */
        padding: 12px;
        font-size: 0.95rem;
        justify-content: center;
    }
}
