
/* Modern tablo tasarımı - Mobil Uyumlu */
.wcwa-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    min-width: 600px; /* Azaltılmış minimum genişlik */
}

/* Tablo container - Yatay kaydırma */
#wcwa-orders-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Tablo wrapper */
.wcwa-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 10px 0;
}

.wcwa-table th, .wcwa-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.wcwa-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
}

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

.wcwa-table tbody tr:hover {
    background-color: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wcwa-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.wcwa-table tbody tr:nth-child(even):hover {
    background-color: #f0f2ff;
}
/* Modern popup tasarımı */
.wcwa-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border: none;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 400px;
    max-width: 90vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wcwa-popup h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.wcwa-popup input, .wcwa-popup textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wcwa-popup input:focus, .wcwa-popup textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wcwa-popup button {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcwa-popup button:hover {
    background: linear-gradient(135deg, #128c7e 0%, #0d6b5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wcwa-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none !important;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.3s ease;
}

.wcwa-close:hover {
    color: #333;
    transform: none !important;
    box-shadow: none !important;
}

.wcwa-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

/* Modern randevu durumu seçim kutusu */
.wcwa-status-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 13px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Giriş Formu Stili */
.wcwa-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
}

.wcwa-login-box {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 400px;
    width: 100%;
}

.wcwa-login-box h3 {
    margin: 0 0 30px 0;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.wcwa-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.wcwa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e3f2fd;
}

.wcwa-form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-sizing: border-box;
}

.wcwa-form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.wcwa-login-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.wcwa-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.wcwa-error {
    background: rgba(244, 67, 54, 0.9);
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
}

.wcwa-logout-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.wcwa-logout-btn:hover {
    background: #d32f2f;
}

/* Mobil responsive tasarım - %50 küçültülmüş */
@media screen and (max-width: 768px) {
    #wcwa-orders-container {
        transform: scale(0.6);
        transform-origin: top left;
        width: 166.6667%;
        height: auto;
    }
    
    .wcwa-table {
        min-width: 500px;
        font-size: 10px;
    }
    
    .wcwa-table th, .wcwa-table td {
        padding: 4px 6px;
        font-size: 9px;
        word-break: break-word;
        line-height: 1.2;
    }
    
    .wcwa-table th {
        font-size: 7px;
        padding: 6px 4px;
    }
    
    .wcwa-status-select {
        padding: 4px 6px;
        font-size: 7px;
        min-width: 80px;
        width: 100px;
    }
    
    .wcwa-send-btn {
        padding: 4px 6px;
        font-size: 6px;
        min-width: 60px;
        width: 80px;
    }
}

/* Çok küçük mobil cihazlar - %50 küçültülmüş */
@media screen and (max-width: 480px) {
    #wcwa-orders-container {
        transform: scale(0.6);
        transform-origin: top left;
        width: 166.6667%;
        height: auto;
    }
    
    .wcwa-table th, .wcwa-table td {
        font-size: 6px;
        line-height: 1.2;
    }
    
    .wcwa-table th {
        font-size: 5px;
    }
    
    .wcwa-status-select {
        font-size: 5px;
    }
    
    .wcwa-send-btn {
        font-size: 4px;
    }
}

/* Giriş formu mobil */
@media screen and (max-width: 768px) {
    .wcwa-login-container {
        padding: 15px;
        min-height: 350px;
    }
    
    .wcwa-login-box {
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .wcwa-login-box h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .wcwa-form-group {
        margin-bottom: 15px;
    }
    
    .wcwa-form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .wcwa-login-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    /* Popup mobil */
    .wcwa-popup {
        width: 95% !important;
        max-width: 450px !important;
        padding: 20px !important;
    }
    
    .wcwa-popup textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    .wcwa-popup button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Çıkış butonu mobil */
    .wcwa-logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    /* Çok küçük ekranlar için */
    .wcwa-table {
        min-width: 400px;
        font-size: 8px;
    }
    
    .wcwa-table th, .wcwa-table td {
        padding: 3px 4px;
        font-size: 6px;
        line-height: 1.2;
    }
    
    .wcwa-table th {
        font-size: 5px;
        padding: 4px 3px;
    }
    
    .wcwa-status-select {
        padding: 3px 4px;
        font-size: 5px;
        min-width: 60px;
        width: 60px;
    }
    
    .wcwa-send-btn {
        padding: 3px 4px;
        font-size: 4px;
        min-width: 40px;
        width: 40px;
    }
    
    .wcwa-login-box {
        padding: 20px 15px;
    }
    
    .wcwa-login-box h3 {
        font-size: 16px;
    }
    
    /* Container padding kaldır */
    #wcwa-orders-container {
        margin: 0 -5px;
        padding: 0 5px;
    }
}

.wcwa-status-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.wcwa-status-select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Modern WhatsApp butonu */
.wcwa-send-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcwa-send-btn:hover {
    background: linear-gradient(135deg, #128c7e 0%, #0d6b5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wcwa-send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

/* İşlem sütunu stilleri */
.wcwa-table td:last-child {
    min-width: 140px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .wcwa-table {
        font-size: 12px;
    }
    
    .wcwa-table th, .wcwa-table td {
        padding: 8px 10px;
    }
    
    .wcwa-status-select, .wcwa-send-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}
