
/*
 * ADMIN PANEL STYLES
 * Sabit CSS kuralları
 * ASP değişkeni gerektiren kurallar header_y.asp içinde kalır.
 */

/* --- GENEL SIFIRLAMA ve KAPSAYICI AYARLARI --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* KAPSAYICI */
.admin-container {
    margin: 0;
    padding: 3px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- HEADER --- */
.admin-header {
    margin: 0;
    padding: 0;
    background-color: #004080;
    color: white;
    padding: 2px 0px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.admin-header h1 {
    font-size: 20px;
    margin-bottom: 1px;
}

/* --- İÇERİK --- */
.admin-content {
    margin: 0;
    padding: 0;
    background-color: white;
    padding: 2px;
    border: 1px solid #ddd;
    margin-top: 1px;
    border-radius: 4px;
    transition: opacity 0.2s ease-in-out;
}

/* --- LİNK HOVER --- */
#admin-content a {
    color: #0066cc;
    text-decoration: none;
}
#admin-content a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
.admin-footer {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 20px;
    padding: 10px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* --- ANA MENÜ --- */
.admin-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 8px;
    padding: 0 10px;
}

.admin-menu a {
    color: white;
    text-decoration: none;
    background-color: #0066cc;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    flex-shrink: 1;
}
.admin-menu a:hover {
    background-color: #0052a3;
    color: #fff;
}
.admin-menu a img.whatsapp-icon {
    width: 32px;
    height: 32px;
    max-width: none;
    vertical-align: middle;
}

/* --- ALT MENÜ --- */
.submenu {
    position: absolute;
    top: auto;
    left: 0;
    display: none;
    flex-direction: column;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 0;
    width: max-content;
    min-width: 120px;
    max-width: 90vw;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-5px);
}
.submenu.show {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}
.submenu a {
    display: block;
    color: #004080;
    text-decoration: none;
    padding: 5px 15px;
}
.submenu a:hover {
    background-color: #0066cc;
    color: #fff;
}

/* --- FORM GENEL LAYOUT --- */
.form-row, .form-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}
.form-row > *, .form-group-inline > * {
    flex: 1 1 100%;
    min-width: 0;
}

/* --- FORM STİLİ --- */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}
.form-group label {
    font-weight: bold;
    margin-bottom: 1px;
    color: #004080;
}
.form-group select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}
.form-submit {
    display: inline-block;
    padding: 10px 5px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 8px;
}
.form-submit:hover {
    background-color: #217dbb;
}

.form-submit1 {
    display: inline-block;
    padding: 3px 6px;
    background: linear-gradient(180deg, #4aa8f5, #3498db);
    color: white;
    border: 1px solid #2c82c9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 1px;
    transition:
        background 0.3s,
        border-color 0.3s,
        box-shadow 0.3s,
        transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.form-submit1:hover {
    background: linear-gradient(180deg, #3a92d8, #217dbb);
    border-color: #1b6fa3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.22);
}
.form-submit2 {
    display: inline-block;
    padding: 4px 3px;
    background-color: #3498db;
    color: white;
    border: 1px solid #2c82c9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, border-color 0.3s;
    margin-top: 8px;
}
.form-submit2:hover {
    background-color: #217dbb;
    border-color: #1b6fa3;
}
.form-submit3 {
    display: inline-block;
    padding: 4px 3px;
    background-color: #3498db;
    color: white;
    border: 1px solid #2c82c9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, border-color 0.3s;
    margin-top: 8px;
}
.form-submit3:hover {
    background-color: #217dbb;
    border-color: #1b6fa3;
}
.form-submit4 {
    display: inline-block;
    padding: 4px 3px;
    background-color: #3498db;
    color: white;
    border: 1px solid #2c82c9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, border-color 0.3s;
    margin-top: 8px;
}
.form-submit4:hover {
    background-color: #217dbb;
    border-color: #1b6fa3;
}

/* Inline form grup: label + select + buton yan yana */
.form-group-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.form-group-inline label {
    width: auto;
    margin: 0;
}
.form-group-inline select, .form-group-inline .form-submit {
    height: 36px;
}
.form-group-inline .form-submit {
    margin-top: 0;
}

/* Buton Grupları */
.grup-butons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
}
.g-button {
    padding: 7px 12px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
    margin: 0 4px;
    transition: background-color 0.2s;
    font-size: 14px;
}
.g-button:hover {
    background-color: #004a99;
}

.g-button-yesil {
    padding: 7px 12px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
    margin: 0 4px;
    transition: background-color 0.2s;
    font-size: 14px;
}
.g-button-yesil:hover {
    background-color: #45a049;
}

.g-button-yesil.off {
    background-color: #ddd;
    color: #888;
    border: 1px solid #aaa;
    'cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* --- CARD FRAME (İçerik Kutusu) --- */
.card-frame {
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #3498db;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    overflow-x: auto;
    overflow-y: visible;
}

/* Card ve img genel ayar */
.card-frame, img {
    max-width: 100%;
    box-sizing: border-box;
}

/* Card-frame içindeki formlar */
.card-frame .form-group {
    display: block;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.card-frame .form-group label {
    font-weight: bold;
    margin: 0;
}
.card-frame .form-group select {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.card-frame .form-group .form-submit {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 14px;
}
.card-frame .form-group .form-submit:hover {
    background-color: #45a049;
}

/* Tüm tablo ve içerik için shrink */
.card-frame .scale-wrapper {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    transform-origin: top center !important;
}

/* --- TABLO VE GİZLİ ÖĞELER --- */
.kenarsiztablo {
    border-collapse: collapse;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.kenarsiztablo td, .kenarsiztablo th {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.kenarsiztablo td.vertical-line {
    background-color: #000 !important;
}
.imgshadow {
    background: #FFFFFF;
    padding: 4px;
    border: 1px solid #777777;
    margin-top: 5px;
    -moz-box-shadow: 0px 0px 5px #666666;
    -webkit-box-shadow: 0px 0px 5px #666666;
    box-shadow: 0px 0px 5px #666666;
}
.gizlitext {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}
a.kinda-link:hover {
    cursor: pointer;
}
button, a {
    transition: all 0.2s ease-in-out;
}
.no-overflow {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* --- MOBİL GÖRÜNÜM --- */
@media (max-width: 600px) {
    body, html {
        overflow-x: hidden;
    }

    .admin-header {
        background-color: #004080;
        padding: 2px 0px;
    }

    .admin-container {
        background-color: #ecf0f1;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .admin-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        padding: 1px 0;
        justify-content: space-between;
    }
    .admin-menu a {
        flex: 0 0 19%;
        max-width: 19%;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 2px 2px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
    }

    .submenu {
        display: none;
        flex-direction: column;
        position: absolute;
        left: auto;
        right: auto;
        width: auto;
        max-width: 90%;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 1000;
        margin: 0 auto;
    }
    .submenu.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    .submenu a {
        flex-shrink: 1;
        max-width: 100%;
        white-space: normal;
        padding: 5px 15px;
    }

    .form-row, .form-group-inline {
        flex-direction: column;
        width: 100%;
    }
    .form-row > *, .form-group-inline > * {
        flex: 1 1 100%;
        min-width: 0;
    }

    .card-frame {
        padding: 15px;
        margin: 15px auto;
    }

    table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        word-break: break-word;
    }
}

.yuvarlak-cerceve {
    border: 1px solid #ccc;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.form-input1, .form-select1 {
    padding: 3px 0px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #2c82c9;
    margin-top: 3px;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-input1:focus, .form-select1:focus {
    border-color: #4aa8f5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.20);
    outline: none;
    transform: translateY(-1px);
}

.form-input1:hover, .form-select1:hover {
    border-color: #3498db;
}

.form-select1 {
    background-image: linear-gradient(180deg, #ffffff, #e9f4ff);
}
.form-input1, .form-select1, .form-submit1 {
    vertical-align: middle;
}

/* --- SABİT YUI BUTONLARI --- */
.yui3-button4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 100%;
    padding: 0.4em 0.7em 0.45em;
    line-height: normal;
    white-space: nowrap;
    vertical-align: baseline;
    text-align: left;
    cursor: default;
    user-select: none;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.80);
    background-color: #E6E6E6;
    background-image: linear-gradient(
        rgba(255,255,255, 0.30),
        rgba(255,255,255, 0.15) 40%,
        transparent
    );
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(0,0,0, 0.25) inset,
        0 2px 0 rgba(255,255,255, 0.30) inset,
        0 1px 2px rgba(0,0,0, 0.15);
    transition: box-shadow 0.1s linear;
    width: 110px;
}

.yui3-button4B {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 0.1em 0.4em;
    box-sizing: border-box;
    text-align: left;
    color: rgba(0,0,0,0.8);
    background-color: #E6E6E6;
    background-image: linear-gradient(
        rgba(255,255,255,0.30),
        rgba(255,255,255,0.15) 40%,
        transparent
    );
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.25) inset,
        0 2px 0 rgba(255,255,255,0.30) inset,
        0 1px 2px rgba(0,0,0,0.15);
}

.yui3-button4BA {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 150%;
    padding: 0.4em 0.7em 0.45em;
    line-height: normal;
    white-space: nowrap;
    vertical-align: baseline;
    text-align: center;
    user-select: none;
    cursor: default;
    color: rgba(0, 0, 0, 0.80);
    background-color: #E6E6E6;
    background-image: linear-gradient(
        rgba(255,255,255, 0.30),
        rgba(255,255,255, 0.15) 40%,
        transparent
    );
    text-decoration: none;
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(0,0,0, 0.25) inset,
        0 2px 0 rgba(255,255,255, 0.30) inset,
        0 1px 2px rgba(0,0,0, 0.15);
    transition: box-shadow 0.1s linear;
    width: 120px;
}

/* --- SABİT YUI BUTTON1 --- */
.yui3-button1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.4em 0;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: rgba(0,0,0,0.8);
    background: #e6e6e6;
    border-radius: 4px;
    border: none;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.25) inset,
        0 2px 0 rgba(255,255,255,0.30) inset,
        0 1px 2px rgba(0,0,0,0.15);
    background-image: linear-gradient(
        rgba(255,255,255,0.30),
        rgba(255,255,255,0.15) 40%,
        transparent
    );
    transition: box-shadow 0.1s linear;
}

.yui3-button1:hover {
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.3) inset,
        0 2px 0 rgba(255,255,255,0.35) inset,
        0 1px 2px rgba(0,0,0,0.2);
}

/* --- SABİT TABLO VE GÖRÜNÜM --- */
.vertical-line {
    min-width: 2px;
    width: 2px;
    background-color: #000;
}
.vertical-linex {
    min-width: 10px;
    width: 10px;
    background-color: #000;
}
table td {
    min-width: 2px;
}

.table-scale-600 {
    margin: 0;
    padding: 0;
    transform-origin: top left;
    top: 0;
    left: 0;
}
.table-scale-600 table {
    border-collapse: collapse;
}
.table-scale-600 td,
.table-scale-600 th {
    padding: 0px;
}

.table-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}

@media(max-width:600px) {
    .table-scale-600 {
        transform: scale(calc(100vw / 600));
        display: block;
        margin: 0;
    }
}

@media(max-width:600px) {
    .table-scale-600 {
        transform: scale(calc(100vw / 600));
    }
}

.baslik {
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    padding: 0px 0;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.baslik, .table-wrap {
    margin: 0;
    padding: 0;
    line-height: 1;
}
