/* js minify islemi icin..: https://www.toptal.com/developers/javascript-minifier */
/* css minify islemi icin.: https://www.toptal.com/developers/cssminifier */
.bg-card-ved {
    background-color: #FFFFF0;
}

.text-ph-ved {
    color: #0daef4 !important;
}

.text-orp-ved {
    color: #FF6A00 !important;
}

/* switch ----------------------------------------------- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #6c757d;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked+.slider {
    background-color: #0d6efd;
}

.toggle-switch input:checked+.slider::before {
    transform: translateX(22px);
}

/* Hourly graphic height ------------------------------- */
.chart-yuks-ho {
    width: 100% !important;
    height: 250px !important;
}

/* Daily ve Weekly graphic height ------------------------------- */
.chart-yuks-da-we {
    width: 100% !important;
    height: 200px !important;
}

/* front login ---------------------------------- */
body.bg-darken-front {
    /* Koyu gri ton, kontrasti artirir */
    background-color: #2c2f33 !important;
}

/* Card kenar bosluklarini acip cercevesini vrugulayalim. */
body.bg-darken-front .card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #ffffff;
}

/* adm login ------------------------------------ */
body.bg-darken-adm {
    /* Koyu gri ton, kontrasti artirir */
    background-color: #DC4C64 !important;
}

/* Card kenar bosluklarini acip cercevesini vrugulayalim. */
body.bg-darken-adm .card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #ffffff;
}

/* devices sayfasindaki sutunlarin genislikleri*/
.devices-table {
    min-width: 700px;
}

.devices-table th.device-id-column {
    min-width: 150px;
}

.devices-table th.actions-column {
    min-width: 150px;
}

.devices-table th.note-column {
    min-width: 350px;
}

.devices-table th.delete-column {
    min-width: 120px;
}

/* Tüm tablo hücrelerini dikeyde ortala */
.devices-table td,
.admdevices-table td,
.admusers-table td {
    vertical-align: middle !important;
}

/* admin/devices sayfasindaki sutunlarin genislikleri*/
.admdevices-table {
    min-width: 650px;
}

.admdevices-table th.admdevices-serial-column {
    min-width: 100px;
}

.admdevices-table th.admdevices-deviceid-column {
    min-width: 250px;
}

.admdevices-table th.admdevices-actions-column {
    min-width: 250px;
}

.admdevices-table th.admdevices-note-column {
    min-width: 350px;
}

.admdevices-table th.fw-version-column {
    min-width: 120px;
}

.admdevices-table th.fw-status-column {
    min-width: 120px;
}

/* Son Tarih Saat sütunu genişliği */
.admdevices-table th.fw-datetime-column {
    min-width: 230px;
}

.admdevices-table th.fw-approval-column {
    min-width: 80px;
}

/* FW versiyon ve durum metin stilleri */
.fw-version-text {
    font-family: 'Courier New', monospace;
    font-size: 1em;
    font-weight: bold;
    color: #198754;
    border-radius: 4px;
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.fw-status-text {
    font-family: 'Courier New', monospace;
    font-size: 1em;
    font-weight: bold;
    color: #dc3545;
    border-radius: 4px;
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Son Tarih Saat metin stili */
.fw-datetime-text {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #dc3545;
    border-radius: 4px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    vertical-align: middle;
}

/* admin/users sayfasindaki sutunlarin genislikleri*/
.admusers-table {
    min-width: 600px;
}

.admusers-table th.admusers-email-column {
    min-width: 400px;
}

.admusers-table th.admusers-actions-column {
    min-width: 200px;
}

.admusers-table th.admusers-note-column {
    min-width: 350px;
}

/* devices.ejs FW Info Modal Ozel Stilleri */
.fw-info-modal {
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

.fw-info-modal .modal-body {
    white-space: pre-line;
    overflow-y: auto;
    flex: 1 1 auto;
}
/* admin/userDevices.ejs sayfasındaki sutunlarin genislikleri*/
.admuserdevices-table {
    min-width: 680px;
}

.admuserdevices-table th.admuserdevices-serial-column {
    min-width: 110px;
}

.admuserdevices-table th.admuserdevices-deviceid-column {
    min-width: 250px;
}

.admuserdevices-table th.admuserdevices-note-column {
    min-width: 350px;
}

/* admin/deviceUsers.ejs sayfasındaki sutunlarin genislikleri*/
.admdeviceusers-table {
    min-width: 720px;
}

.admdeviceusers-table th.admdeviceusers-email-column {
    min-width: 400px;
}

.admdeviceusers-table th.admdeviceusers-note-column {
    min-width: 350px;
}

/* devices.ejs icon styles */
.robot-icon-ved {
    font-size: 4rem;
    color: #0d6efd;
}

.number-icon-ved {
    font-size: 2rem;
}

.empty-state-icon-ved {
    font-size: 4rem;
    color: #0d6efd;
}