/* assets/css/late-styles.css - YENİ TASARIM */

/* Genel Bağlantı Butonu Yapısı */
.platform-buttons-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin-top: 20px;
}
.platform-connect-wrapper {
    width: calc(50% - 7.5px);
    min-width: 200px;
}

/* Connect Butonları - Ana Sayfa Tarzında (Beyaz Arka Plan, Renkli Border/Yazı) */
.platform-connect-btn { 
    background-color: white; /* Arkaplan beyaz */
    color: #3f51b5; /* Yazı rengi primary mavi */
    padding: 12px 20px; 
    border: 2px solid #3f51b5; /* Renkli border */
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-size: 1rem; 
    width: 100%; 
    text-align: left;
    position: relative;
    font-weight: 600; /* Daha belirgin font */
}
.platform-connect-btn:hover { 
    background-color: #e8eaf6; /* Hover'da hafif mavi */
}

/* BAĞLANTI DURUMU STİLLERİ */
.connection-status-text {
    position: absolute;
    right: 15px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}
/* Bağlı Buton ve Text - Bağlıysa yeşil tonlar */
.platform-connect-btn.is-connected { 
    background-color: #e8f5e9; /* Çok açık yeşil arkaplan */
    color: #4caf50; /* Yeşil yazı */
    border-color: #4caf50; /* Yeşil border */
}
.platform-connect-btn.is-connected:hover { background-color: #c8e6c9; } /* Hover'da biraz daha koyu yeşil */
.connection-status-text.connected { color: #4caf50; } /* Yeşil yazı */
.connection-status-text.disconnected { color: #f44336; } /* Kırmızı yazı */

/* YENİ KAYDET/GERİ BUTONLARI GRUBU */
.connect-page-footer {
    display: flex;
    flex-direction: column; /* Alt alta hizalama */
    gap: 15px; /* Boşluk */
    margin-top: 30px;
    padding-top: 20px; /* Üstteki butonlardan ayırma */
    border-top: 1px solid #ccc; /* İnce çizgi ile ayırma */
}

/* Save Butonu - Primary Stil (Mavi) */
#sync-late-data-btn {
    width: 100%;
    /* btn-primary stilinizi kullanacaktır, ek ayar gerekmez */
}

/* Back to Panel Butonu - Log Out Tarzı (Koyu Gri Border) */
#back-to-panel-from-connect-btn {
    width: 100%;
    background-color: white;
    color: #616161; /* Koyu gri yazı */
    border: 2px solid #616161; /* Koyu gri border */
    transition: all 0.3s;
    font-weight: 600;
}

#back-to-panel-from-connect-btn:hover {
    background-color: #f5f5f5;
    color: #424242;
}

/* Başarılı Durum Butonu */
.btn-success { 
    background-color: #4caf50 !important; 
    border-color: #4caf50 !important; 
    color: white !important; 
    padding: 12px 20px !important; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-size: 1rem; 
    width: 100%; 
    position: relative;
    font-weight: 600;
}

.global-alert-bar {
    background-color: #fff3cd; /* Hafif sarı/turuncu */
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}
.global-alert-bar a {
    color: #856404;
    text-decoration: underline;
    cursor: pointer;
}

/* Reconnect durumu için uyarı rengi */
.connection-status-text.warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.platform-connect-btn.needs-reconnect {
    border-color: #ffc107;
    background-color: #fff9e6;
}

.connect-info-text {
    max-width: 750px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
    color: #444;
    text-align: center;
}
.connect-info-text strong {
    color: #d97706; /* Turuncu tonuyla uyumlu bir vurgu */
}
