/* Garanti Yönetim Sistemi - Frontend Styles */

.gys-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 35px;
    max-width: 780px;
    margin: 20px auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gys-title {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #1a1a2e;
    font-weight: 700;
}

.gys-subtitle {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.gys-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gys-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.gys-form-group input,
.gys-form-group select,
.gys-form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 7px;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.gys-form-group input:focus,
.gys-form-group select:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74,108,247,.12);
}

.gys-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.gys-form-group {
    margin-bottom: 16px;
}

.gys-btn {
    padding: 11px 24px;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}

.gys-btn:hover { opacity: .88; transform: translateY(-1px); }
.gys-btn:active { transform: translateY(0); }

.gys-btn-primary  { background: #4a6cf7; color: #fff; }
.gys-btn-danger   { background: #e74c3c; color: #fff; }
.gys-btn-full     { width: 100%; }

.gys-success { border-left: 4px solid #27ae60; background: #f0faf4; padding: 16px 20px; border-radius: 8px; color: #1e7e34; }
.gys-warning { border-left: 4px solid #f39c12; background: #fffbf0; padding: 16px 20px; border-radius: 8px; color: #856404; }
.gys-error   { border-left: 4px solid #e74c3c; background: #fff5f5; padding: 16px 20px; border-radius: 8px; color: #c0392b; }

.gys-table-wrap { overflow-x: auto; }

.gys-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gys-table th {
    background: #f4f6fb;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.gys-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.gys-table tr:hover td { background: #f9f9f9; }

.gys-badge-aktif { color: #27ae60; font-weight: 700; }
.gys-badge-pasif { color: #e74c3c; font-weight: 700; }

/* Sorgu Sonucu */
.gys-sonuc-kart {
    margin-top: 20px;
    border: 2px solid;
    border-radius: 10px;
    padding: 20px 24px;
}

.gys-sonuc-kart.aktif { border-color: #27ae60; background: #f0faf4; }
.gys-sonuc-kart.pasif { border-color: #e74c3c; background: #fff5f5; }

.gys-sonuc-kart .gys-sonuc-baslik {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.gys-sonuc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gys-sonuc-satir { display: flex; flex-direction: column; }
.gys-sonuc-satir span:first-child { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #888; }
.gys-sonuc-satir span:last-child  { font-size: 15px; font-weight: 600; color: #222; }

.gys-foto { margin-top: 14px; }
.gys-foto img { max-width: 200px; border-radius: 6px; border: 2px solid #ddd; }

/* Loading */
.gys-loading { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: gys-spin .7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes gys-spin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
    .gys-form-row { flex-direction: column; }
    .gys-box { padding: 20px 16px; }
    .gys-sonuc-grid { grid-template-columns: 1fr; }
}
