/* ARTBEY Şikayet Sistemi - Public CSS */

.artbey-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.artbey-complaint-form {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
}

.artbey-complaint-form h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
}

.artbey-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.artbey-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.artbey-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.artbey-form-group input,
.artbey-form-group select,
.artbey-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.artbey-form-group input:focus,
.artbey-form-group select:focus,
.artbey-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.artbey-form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.artbey-submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artbey-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.artbey-submit-btn:active {
    transform: translateY(0);
}

.artbey-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.artbey-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-weight: 500;
}

.artbey-alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #27ae60;
}

.artbey-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #e74c3c;
}

.artbey-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #3498db;
}

.artbey-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #f39c12;
}

.artbey-loading {
    display: none;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin: 20px 0;
}

.artbey-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: artbey-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes artbey-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.artbey-complaint-status {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.artbey-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.artbey-status-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.artbey-status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artbey-status-inceleniyor {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffffff;
}

.artbey-status-beklemede {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
}

.artbey-status-tamamlandi {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #ffffff;
}

.artbey-complaint-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.artbey-detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.artbey-detail-label {
    font-weight: 700;
    color: #7f8c8d;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.artbey-detail-value {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
}

.artbey-chat-widget {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.artbey-chat-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
}

.artbey-chat-messages {
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.artbey-chat-message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    max-width: 85%;
    position: relative;
}

.artbey-chat-message.user {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    margin-left: auto;
    text-align: right;
}

.artbey-chat-message.ai {
    background: #ffffff;
    color: #2c3e50;
    margin-right: auto;
    border: 1px solid #e1e5e9;
}

.artbey-chat-message .message-header {
    font-weight: 700;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artbey-chat-message .message-content {
    line-height: 1.6;
}

.artbey-chat-input {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    background: #ffffff;
}

.artbey-chat-input textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    resize: none;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.artbey-chat-input textarea:focus {
    outline: none;
    border-color: #3498db;
}

.artbey-chat-send-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.artbey-chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.artbey-chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.artbey-knowledge-search {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.artbey-knowledge-search h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
}

.knowledge-results {
    margin-top: 20px;
}

.knowledge-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.knowledge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.knowledge-item h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.knowledge-item p {
    color: #7f8c8d;
    margin-bottom: 10px;
    line-height: 1.6;
}

.knowledge-item small {
    color: #95a5a6;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artbey-complaint-list {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.artbey-complaint-list h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    margin: 0;
}

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

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    padding: 0;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
}

.modal-body {
    padding: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .artbey-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .artbey-complaint-details {
        grid-template-columns: 1fr;
    }
    
    .artbey-status-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .artbey-chat-message {
        max-width: 95%;
    }
    
    .artbey-complaint-form,
    .artbey-complaint-status,
    .artbey-chat-widget,
    .artbey-knowledge-search,
    .artbey-complaint-list {
        margin: 10px 0;
        padding: 20px;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .artbey-complaint-form h2 {
        font-size: 22px;
    }
    
    .artbey-form-group input,
    .artbey-form-group select,
    .artbey-form-group textarea {
        padding: 10px 12px;
    }
    
    .artbey-submit-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .modal-dialog {
        width: 95%;
    }
}

/* Print Styles */
@media print {
    .artbey-submit-btn,
    .artbey-chat-input,
    .btn {
        display: none;
    }
    
    .artbey-complaint-form,
    .artbey-complaint-status {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .artbey-form-group input,
    .artbey-form-group select,
    .artbey-form-group textarea {
        border: 2px solid #000;
    }
    
    .artbey-submit-btn {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

