* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: #1a1a2e;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* Login Page Styles */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-page .glass-card {
    padding: 40px;
}

.login-page .card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-page .card-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.login-page .card-header p {
    font-size: 15px;
    opacity: 0.9;
}

.error-message {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: white;
    font-size: 14px;
    margin-bottom: 16px;
}

.dashboard-container {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 24px 30px;
    background: rgba(30, 30, 50, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-bar h1 {
    font-size: 26px;
    color: white;
    font-weight: 600;
}

.stats-mini {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.stat-value {
    color: white;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    min-width: 30px;
    text-align: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.statistics-section {
    margin-bottom: 10px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.stats-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 100px;
}

.stat-icon {
    font-size: 36px;
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.stat-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    font-weight: 400;
}

.glass-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.control-panel {
    position: sticky;
    top: 20px;
    z-index: 10;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h1,
.card-header h2 {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-header h1 {
    font-size: 26px;
}

.card-header h2 {
    font-size: 20px;
}

.card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.flex-1 {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.bulk-phone-textarea {
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 120px;
}

.form-row .form-input {
    min-width: 200px;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Autocomplete stilini override et */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.3) inset !important;
    -webkit-text-fill-color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.form-input:-moz-autofill,
.form-input:-moz-autofill-preview {
    background: rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.form-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: rgba(80, 80, 120, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: rgba(46, 213, 115, 0.3);
    color: white;
    border: 1px solid rgba(46, 213, 115, 0.5);
}

.btn-danger {
    background: rgba(255, 71, 87, 0.3);
    color: white;
    border: 1px solid rgba(255, 71, 87, 0.5);
}

.btn-secondary {
    background: rgba(60, 60, 80, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.message-box {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 16px;
}

.message-box.success {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.4);
    color: white;
}

.message-box.error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: white;
}

.operations-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.section-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
}

.section-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.section-badge {
    background: rgba(60, 60, 80, 0.5);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-badge.success {
    background: rgba(46, 213, 115, 0.3);
    border-color: rgba(46, 213, 115, 0.5);
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.operation-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.operation-card.completed {
    background: rgba(46, 213, 115, 0.15);
    border-color: rgba(46, 213, 115, 0.3);
}

.operation-card.error {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
}

.operation-card.pending {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-info {
    flex: 1;
}

.card-phone {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.card-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.waiting {
    background: rgba(255, 193, 7, 0.3);
    color: white;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.status-badge.processing {
    background: rgba(52, 152, 219, 0.3);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.5);
}

.status-badge.success {
    background: rgba(46, 213, 115, 0.3);
    color: white;
    border: 1px solid rgba(46, 213, 115, 0.5);
}

.status-badge.error {
    background: rgba(255, 71, 87, 0.3);
    color: white;
    border: 1px solid rgba(255, 71, 87, 0.5);
}

.card-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-label {
    color: rgba(255, 255, 255, 0.8);
}

.detail-value {
    color: white;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-value {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
}

.card-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-input-group {
    display: flex;
    gap: 8px;
}

.card-input-group input {
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-actions .btn {
    flex: 1;
}

.progress-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(120, 120, 180, 0.8), rgba(160, 160, 220, 0.9));
    width: 0;
    transition: width 0.3s ease;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-state p {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.hidden {
    display: none !important;
}

.card-message {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.card-message.success {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.4);
    color: white;
}

.card-message.error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: white;
}

@media (max-width: 1200px) {
    .operations-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }

    .stats-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .stats-header .btn {
        width: 100%;
    }

    .header-bar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .header-left {
        width: 100%;
    }

    .header-bar h1 {
        font-size: 18px;
    }

    .stats-mini {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stat-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        min-width: 100px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 13px;
        padding: 3px 8px;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .header-actions .btn {
        width: 100%;
        font-size: 13px;
        padding: 10px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-row .form-group {
        width: 100%;
    }

    .form-row .form-input {
        min-width: 100%;
    }

    .form-row .btn {
        width: 100%;
    }

    .form-row .form-group label:first-child:last-child {
        display: none;
    }

    .card-input-group {
        flex-direction: column;
    }

    .card-input-group .btn {
        width: 100%;
    }

    .operations-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 16px;
    }

    .control-panel {
        position: relative;
        top: 0;
    }

    .card-header h2 {
        font-size: 16px;
    }

    .section-header {
        padding: 0;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .section-header-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .section-header-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        min-height: 80px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-hint {
        font-size: 10px;
        margin-top: 4px;
    }

    .operation-card {
        padding: 16px;
    }

    .card-phone {
        font-size: 16px;
    }

    .card-time {
        font-size: 11px;
    }

    .detail-row {
        font-size: 12px;
    }

    .detail-value {
        max-width: 70%;
        font-size: 12px;
    }

    .account-details-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        gap: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-input {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-hint {
        font-size: 11px;
    }

    .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-box {
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.dialog-box.logs-dialog {
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.dialog-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.dialog-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dialog-body {
    padding: 24px 30px;
}

.dialog-body p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.info-box {
    margin-top: 16px;
    padding: 16px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.info-box strong {
    color: #58a6ff;
}

.dialog-actions {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.logs-dialog .dialog-body {
    padding: 0;
    overflow-y: auto;
    max-height: 60vh;
}

.logs-list {
    display: flex;
    flex-direction: column;
}

.logs-search-section {
    padding: 16px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.logs-search-input {
    width: 100%;
    margin: 0;
    transition: all 0.3s ease;
}

.logs-search-input:focus {
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.3);
}

.logs-pagination-info {
    padding: 12px 30px;
    background: rgba(88, 166, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-align: center;
}

.dialog-pagination {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

.pagination-btn.active {
    background: rgba(88, 166, 255, 0.3);
    border-color: rgba(88, 166, 255, 0.5);
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
}

.log-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-header {
    padding: 16px 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-time {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 4px;
    min-width: 70px;
}

.log-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
    font-size: 11px;
}

.log-method.GET {
    background: rgba(52, 152, 219, 0.3);
    color: #5dade2;
}

.log-method.POST {
    background: rgba(46, 213, 115, 0.3);
    color: #58d68d;
}

.log-method.PUT {
    background: rgba(255, 193, 7, 0.3);
    color: #f4d03f;
}

.log-method.DELETE {
    background: rgba(231, 76, 60, 0.3);
    color: #ec7063;
}

.log-method.BACKEND {
    background: rgba(155, 89, 182, 0.3);
    color: #bb8fce;
}

.log-url {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 12px;
    flex: 1;
}

.log-expand {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin-left: auto;
}

.log-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.log-status.success {
    background: rgba(46, 213, 115, 0.2);
    color: #58d68d;
}

.log-status.error {
    background: rgba(255, 71, 87, 0.2);
    color: #ec7063;
}

.log-details-container {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.log-details-section {
    padding: 16px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-details-section:last-child {
    border-bottom: none;
}

.log-details-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.log-details-json {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    line-height: 1.5;
}

.logs-empty {
    padding: 60px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 8px;
    }

    .header-bar {
        padding: 12px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .header-bar h1 {
        font-size: 16px;
    }

    .stats-mini {
        flex-direction: column;
        gap: 8px;
    }

    .stat-item {
        width: 100%;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .login-page .glass-card {
        padding: 24px 16px;
    }

    .login-page .card-header h1 {
        font-size: 20px;
    }

    .dialog-box {
        width: 95%;
        max-width: none;
        border-radius: 16px;
    }

    .dialog-box.logs-dialog,
    .dialog-box.users-dialog,
    .dialog-box.auto-mode-dialog {
        max-height: 90vh;
        width: 95%;
    }

    .dialog-header,
    .dialog-body,
    .dialog-actions {
        padding: 14px 16px;
    }

    .dialog-header h3 {
        font-size: 16px;
    }

    .dialog-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .dialog-actions .btn {
        width: 100%;
    }

    .dialog-pagination {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 35px;
    }

    .logs-search-section {
        padding: 12px 16px;
    }

    .logs-pagination-info {
        padding: 10px 16px;
        font-size: 11px;
    }

    .log-header {
        padding: 10px 16px;
        font-size: 10px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .log-time {
        min-width: 55px;
        font-size: 10px;
    }

    .log-method {
        font-size: 10px;
        padding: 2px 6px;
    }

    .log-url {
        font-size: 10px;
        width: 100%;
        margin-top: 4px;
    }

    .log-details-section {
        padding: 10px 16px;
    }

    .log-details-json {
        font-size: 9px;
        padding: 8px;
    }

    .header-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        font-size: 12px;
        padding: 8px 12px;
    }

    .glass-card {
        padding: 14px;
        border-radius: 16px;
    }

    .card-header h2 {
        font-size: 15px;
    }

    .operation-card {
        padding: 14px;
        border-radius: 14px;
    }

    .status-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .section-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .empty-state p {
        font-size: 14px;
    }

    .empty-state small {
        font-size: 12px;
    }

    .users-actions,
    .users-list {
        padding: 14px 16px;
    }

    .user-card {
        padding: 14px;
    }

    .user-card-username {
        font-size: 16px;
        flex-wrap: wrap;
    }

    .user-card-meta {
        font-size: 11px;
    }

    .user-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .user-card-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .user-card-actions .btn {
        flex: 1;
        min-width: 100px;
    }

    .user-card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .user-stat-label {
        font-size: 10px;
    }

    .user-stat-value {
        font-size: 18px;
    }

    .auto-mode-content {
        padding: 14px 16px;
    }

    .auto-mode-content h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .auto-mode-control,
    .auto-mode-status,
    .auto-mode-stats {
        padding: 14px;
    }

    .stats-grid-mini {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-mini {
        padding: 12px;
    }

    .stat-mini-value {
        font-size: 28px;
    }

    .stat-mini-label {
        font-size: 11px;
    }

    .stat-hint {
        font-size: 9px;
        margin-top: 3px;
    }

    .stats-header h2 {
        font-size: 15px;
    }

    .status-item {
        padding: 10px;
        font-size: 13px;
    }

    .status-label,
    .status-value {
        font-size: 13px;
    }

    .account-entry {
        padding: 14px 16px;
    }

    .account-phone {
        font-size: 15px;
    }

    .account-details-grid {
        padding: 10px;
        gap: 6px;
    }

    .account-detail-label {
        font-size: 10px;
    }

    .account-detail-value {
        font-size: 12px;
    }
}

/* User Management Styles */
.users-dialog .dialog-box {
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.users-dialog .dialog-body {
    padding: 0;
    overflow-y: auto;
    max-height: 65vh;
}

.users-actions {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 30px;
}

.users-empty {
    padding: 60px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.user-card {
    background: rgba(40, 40, 60, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.user-card-info {
    flex: 1;
}

.user-card-username {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-card-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.user-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(60, 60, 80, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.user-badge.admin {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

.user-badge.current {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.user-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.user-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.user-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
}

.user-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: rgba(120, 120, 180, 0.8);
}

@media (max-width: 768px) {
    .users-dialog .dialog-box {
        max-width: 95%;
    }

    .users-actions,
    .users-list {
        padding: 16px 20px;
    }

    .user-card {
        padding: 16px;
    }

    .user-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .user-card-actions {
        width: 100%;
    }

    .user-card-actions .btn {
        flex: 1;
    }

    .user-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Auto Mode Styles */
.auto-mode-dialog .dialog-box {
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.auto-mode-dialog .dialog-body {
    overflow-y: auto;
    max-height: 70vh;
}

.auto-mode-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
}

.auto-mode-content h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.auto-mode-control,
.auto-mode-status,
.auto-mode-stats {
    background: rgba(40, 40, 60, 0.6);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auto-mode-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.auto-mode-actions .btn {
    flex: 1;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.status-value {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.stats-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-mini {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-mini-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-mini-value.success {
    color: #58d68d;
}

.stat-mini-value.error {
    color: #ec7063;
}

.stat-mini-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .auto-mode-dialog .dialog-box {
        max-width: 95%;
    }

    .auto-mode-content {
        padding: 16px 20px;
    }

    .stats-grid-mini {
        grid-template-columns: 1fr;
    }

    .auto-mode-actions {
        flex-direction: column;
    }

    .auto-mode-actions .btn {
        width: 100%;
    }
}

/* Auto Mode Operations List */
.auto-mode-operations-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.auto-mode-operation-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.operation-worker {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.operation-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 4px;
}

.operation-phone {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
}

.auto-mode-no-operations {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Provider Stats Styles */
.provider-stats-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.provider-stat-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.provider-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.provider-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.provider-rate {
    font-size: 14px;
    font-weight: 700;
    color: rgba(99, 102, 241, 1);
}

.provider-stat-details {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stat-detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.stat-detail.success {
    color: rgba(46, 213, 115, 1);
    font-weight: 600;
}

.stat-detail.error {
    color: rgba(255, 71, 87, 1);
    font-weight: 600;
}

.no-provider-stats {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Accounts List Styles */
.accounts-list {
    display: flex;
    flex-direction: column;
}

.account-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 30px;
}

.account-entry:last-child {
    border-bottom: none;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.account-phone {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.account-type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.account-type-badge.new {
    background: rgba(46, 213, 115, 0.3);
    color: white;
    border: 1px solid rgba(46, 213, 115, 0.5);
}

.account-type-badge.existing {
    background: rgba(52, 152, 219, 0.3);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.5);
}

.account-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
}

.account-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-detail-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
}

.account-detail-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
}

.accounts-empty {
    padding: 60px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
