.tavsiye-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 900px) {
    .tavsiye-container {
        grid-template-columns: 1fr;
    }
}

.kroki-area {
    background: #111;
    border: 2px dashed #333;
    border-radius: 12px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kroki-area.drag-over {
    border-color: #e63946;
    background: rgba(230, 57, 70, 0.05);
}

.kroki-image {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

.kroki-text {
    position: absolute;
    color: #666;
    font-size: 1.2rem;
    pointer-events: none;
}

.sidebar {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.draggable-items {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.drag-item {
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
    user-select: none;
}

.drag-item:active {
    cursor: grabbing;
}

.drag-item i {
    color: #e63946;
}

.drag-item:hover {
    border-color: #e63946;
    transform: translateY(-2px);
}

.placed-item {
    position: absolute;
    background: #e63946; /* Varsayılan kırmızı */
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: grab;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
    z-index: 10;
    transition: transform 0.2s;
}

/* Farklı donanımlar için özel renkler */
.placed-item[data-type="kayit_cihazi"] { background: #4361ee; box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4); }
.placed-item[data-type="hareket_dedektoru"] { background: #7209b7; box-shadow: 0 5px 15px rgba(114, 9, 183, 0.4); }
.placed-item[data-type="kapi_kontak"] { background: #4cc9f0; box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4); color: #000; }
.placed-item[data-type="su_baskin"] { background: #3a86ff; box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4); }
.placed-item[data-type="siren"] { background: #f77f00; box-shadow: 0 5px 15px rgba(247, 127, 0, 0.4); }

/* Sol menü ikon renkleri de eşleşsin */
.drag-item[data-type="kayit_cihazi"] i { color: #4361ee; }
.drag-item[data-type="hareket_dedektoru"] i { color: #7209b7; }
.drag-item[data-type="kapi_kontak"] i { color: #4cc9f0; }
.drag-item[data-type="su_baskin"] i { color: #3a86ff; }
.drag-item[data-type="siren"] i { color: #f77f00; }

.placed-item:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.placed-item .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    color: #e63946;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.placed-item:hover .remove-btn {
    opacity: 1;
}

.result-card {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid #e63946;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.result-card h3 {
    color: #e63946;
    margin-bottom: 10px;
}

.result-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.lead-form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.lead-form input {
    background: #111;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 6px;
    color: #fff;
    width: 100%;
}

.lead-form button {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.lead-form button:hover {
    background: #c1121f;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
}

/* --- AI Assistant Visual Feast --- */
.ai-assistant-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    z-index: 10000;
    pointer-events: none; /* Boşken tıklamaları engelle */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 600px) {
    .ai-assistant-wrapper {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

.ai-message {
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: 18px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255,255,255,0.06);
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.ai-message.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Glowing accent on top */
.ai-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e63946, #ff8fa3, #e63946);
    background-size: 200% 100%;
    animation: gradientShimmer 2s infinite linear;
}

@keyframes gradientShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ai-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946, #590920);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
    position: relative;
}

.ai-avatar i {
    font-size: 1.2rem;
    color: #fff;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.ai-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff, #ffccd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-body {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.ai-close {
    position: absolute;
    top: 18px;
    right: 18px;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
}

.ai-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.ai-action-btn {
    margin-top: 16px;
    width: 100%;
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: #ffb3c1;
    padding: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ai-action-btn:hover {
    background: #e63946;
    color: #fff;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    border-color: #e63946;
}

/* TEKLİF MODAL CSS */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #e63946;
}
.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #fff;
}
.modal-body {
    padding: 20px;
}
.modal-body p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 15px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: #e63946;
}
