/**
 * BK Sikayet/Oneri/Talep - Frontend & Admin Styles
 */

/* ==========================================================================
   Frontend Form Styles
   ========================================================================== */

/* General */
.bk-sikayet-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Notices */
.bk-notice {
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bk-notice-info {
    background: #e8f4fd;
    border-left: 4px solid #0073aa;
    color: #1e3a5f;
}

.bk-notice-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.bk-notice-success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.bk-notice p {
    margin: 0;
}

/* Form Header */
.bk-sikayet-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.bk-sikayet-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1a1a1a;
}

.bk-sikayet-form-header p {
    margin: 0;
    color: #6b7280;
}

/* Form */
.bk-sikayet-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bk-form-group {
    margin-bottom: 20px;
}

.bk-form-group:last-child {
    margin-bottom: 0;
    margin-top: 30px;
}

.bk-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.bk-form-group input[type="text"],
.bk-form-group input[type="email"],
.bk-form-group input[type="url"],
.bk-form-group input[type="number"],
.bk-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.bk-sikayet-form .bk-form-group select,
.bk-form-group select {
    width: 100% !important;
    padding: 16px 40px 16px 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background-color: #fff !important;
    height: auto !important;
    min-height: 52px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.bk-form-group input:focus,
.bk-form-group textarea:focus,
.bk-form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.bk-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.bk-form-group button {
    width: 100%;
}

/* User Info Box */
.bk-user-info {
    background: #f3f4f6;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.bk-user-info p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* Buttons */
.bk-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.bk-btn-primary {
    background: #1a1a1a;
    color: #fff !important;
}

.bk-btn-primary:hover {
    background: #333;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bk-sikayet-form-wrapper {
        padding: 10px;
    }

    .bk-sikayet-form {
        padding: 20px;
    }
}

/* ==========================================================================
   Admin Styles
   ========================================================================== */

/* Admin Wrapper */
.bk-sikayet-admin {
    max-width: 1400px;
}

.bk-sikayet-admin .nav-tab-wrapper {
    margin-bottom: 20px;
}

/* Badges */
.bk-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Category Badges */
.bk-badge-sikayet {
    background: #fee2e2;
    color: #991b1b;
}

.bk-badge-oneri {
    background: #dbeafe;
    color: #1e40af;
}

.bk-badge-talep {
    background: #fef3c7;
    color: #92400e;
}

/* Status Badges */
.bk-status-beklemede {
    background: #fef3c7;
    color: #92400e;
}

.bk-status-inceleniyor {
    background: #dbeafe;
    color: #1e40af;
}

.bk-status-cevaplandi {
    background: #d1fae5;
    color: #065f46;
}

.bk-status-kapandi {
    background: #e5e7eb;
    color: #4b5563;
}

/* Detail View */
.bk-detail-view {
    margin-top: 20px;
}

.bk-detail-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bk-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.bk-detail-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1a1a1a;
    flex: 1;
}

.bk-detail-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.bk-detail-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #4b5563;
}

.bk-detail-info p:last-child {
    margin-bottom: 0;
}

.bk-detail-info a {
    color: #1e40af;
    text-decoration: none;
}

.bk-detail-info a:hover {
    text-decoration: underline;
}

.bk-detail-message {
    margin-bottom: 25px;
}

.bk-detail-message h4,
.bk-detail-status h4,
.bk-detail-admin-note h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.bk-message-content {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    border-left: 4px solid #1a1a1a;
}

.bk-detail-status {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.bk-status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bk-status-buttons .button {
    padding: 8px 16px;
}

.bk-status-buttons .button[disabled] {
    cursor: default;
    opacity: 1;
}

.bk-detail-admin-note textarea {
    width: 100%;
    min-height: 120px;
    margin-bottom: 10px;
}

/* Table Styles */
.bk-sikayet-admin .wp-list-table {
    margin-top: 10px;
}

.bk-sikayet-admin .wp-list-table th,
.bk-sikayet-admin .wp-list-table td {
    vertical-align: middle;
}

.bk-sikayet-admin .wp-list-table td small {
    color: #6b7280;
}

.bk-sikayet-admin .wp-list-table td em {
    font-size: 11px;
}

/* Responsive Admin */
@media (max-width: 782px) {
    .bk-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bk-status-buttons {
        flex-direction: column;
    }

    .bk-status-buttons .button {
        width: 100%;
        text-align: center;
    }
}
