/* Genel Stiller */
.form-control {
    border: 1px solid #f5f5f5;
}

/* Icon Table - Coder sayfası için */
.icon-table-wrapper {
    margin-top: 5px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-table {
    margin: 0 auto;
    display: table;
}

.icon-table-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Index sayfası için özel stil */
body:not([style*="background-image"]) .form-control {
    color: #333 !important;
    background-color: #fff !important;
}

/* TST Sayfası Genel Stiller */
body[style*="background-image"] {
    min-height: 100vh;
    padding-bottom: 20px;
}

/* Mobil */
@media screen and (max-width: 768px) {
    .icon-table-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .icon-table-wrapper {
        width: auto !important;
        margin: 5px auto 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .icon-table {
        margin: 0 auto !important;
        display: table !important;
        width: auto !important;
    }
    
    .tabloxx {
        border-radius: 16px;
        width: 95%;
        max-width: 100%;
        position: relative;
        background-image: url('../../image/bck.png');
        margin: 0 auto 15px;
        padding: 10px 0;
        box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    }
    
    .data-list-container {
        margin-top: 15px !important;
        padding: 0 5px;
    }
    
    .form-controlx {
        width: 100% !important;
        font-size: 14px;
    }
    
    .btn-action {
        font-size: 14px;
        padding: 8px;
    }
    
    .data-item {
        padding: 0;
        margin-bottom: 0px;
    }
    
    .data-item .sira-no {
        width: 35px !important;
        min-width: 35px !important;
        padding-right: 8px;
    }
    
    .sira-no-btn {
        padding: 8px 6px !important;
        font-size: 18px;
        min-width: 28px;
    }
    
    .content-textarea {
        font-size: 18px;
        padding: 0.4rem 0.6rem !important;
    }
    
    .tabloxx .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .tabloxx .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .btn-action {
        margin: 0;
    }
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .tabloxx {
        border-radius: 16px;
        width: 70%;
        max-width: 600px;
        position: relative;
        background-image: url('../../image/bck.png');
        margin: 0 auto 20px;
        padding: 15px 0;
        box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    }
    
    .data-list-container {
        margin-top: 20px !important;
    }
}

/* Desktop */
@media screen and (min-width: 1025px) {
    .tabloxx {
        border-radius: 16px;
        width: 58%;
        max-width: 700px;
        position: relative;
        background-image: url('../../image/bck.png');
        margin: 0 auto 20px;
        padding: 15px 0;
        box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    }
    
    .data-list-container {
        margin-top: 20px !important;
    }
}

.form-controlx {
    border: 1px solid #e1dfdd !important;
    display: block;
    width: 100%;
    height: auto;
    min-height: 80px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, background-color .15s ease-in-out;
    resize: vertical;
}

.form-controlx:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.form-controlx::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Logout Butonu - Genel */
#logoutBtn {
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#logoutBtn:hover {
    transform: scale(1.05);
}

#logoutBtn:active {
    transform: scale(0.95);
}

/* TST sayfası için form-control */
.tst-page .form-control {
    color: white !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.tst-page .btn-primary {
    background-color: rgba(0, 123, 255, 0.8);
    border-color: rgba(0, 123, 255, 0.8);
    transition: all 0.2s ease;
}

.tst-page .btn-primary:hover {
    background-color: rgba(0, 123, 255, 1);
    border-color: rgba(0, 123, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tst-page .btn-primary:active {
    transform: translateY(0);
}

.idgizle {
    display: none;
}

hr {
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.5;
}

.tst-page hr {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.siranoo {
    width: 20px;
}

.borderx {
    border-bottom: 1px solid grey;
}

/* Veri Listesi Stilleri */
.data-list-container {
    margin-top: 20px;
    padding: 0 10px;
}

.data-item {
    padding: 0;
    margin-bottom: 0px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: none;
    transition: background-color 0.2s ease;
}

.data-item:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.data-item table {
    width: 100%;
    margin: 0;
}

.data-item .sira-no {
    vertical-align: top;
    width: 40px;
    min-width: 40px;
    font-weight: bold;
    padding-right: 10px;
}

.data-item .sira-no-btn {
    color: white;
    padding: 10px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    min-width: 35px;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-weight: bold;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
}

.data-item .sira-no-btn:hover {
    background-color: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
}

.data-item .sira-no-btn:active {
    transform: scale(0.95);
}

.data-item .content-textarea {
    width: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    resize: vertical;
    min-height: 40px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.data-item .content-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.4);
}

/* Boş liste mesajı */
#dataList:empty::before {
    content: "Henüz veri yok. Yukarıdan veri ekleyebilirsiniz.";
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px;
    font-size: 16px;
}

