/* Üst köşe butonları için stil */
.header-buttons {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.header-button:hover {
    background-color: rgba(6, 182, 212, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.header-button svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 3px rgba(6, 182, 212, 0.5));
}

/* Tooltip stileri */
.header-button-tooltip {
    position: relative;
}

.header-button-tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: rgba(15, 23, 42, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    position: absolute;
    z-index: 1;
    bottom: -35px;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.header-button-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Kartlar için hover efektini iyileştir */
.grid a > div {
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.grid a > div:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.7);
}

/* Aktif kart stilini kaldır */
.active-card {
    transform: scale(1) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
}

/* Hover olduğunda aktif kart stili ekle */
.grid a > div:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.7) !important;
}

/* Mobil cihazlar için modül kartları sabit boyut ayarları */
@media (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
    }
    
    .grid a {
        width: 220px !important;
        margin: 0 auto !important;
    }
    
    .grid a > div {
        width: 220px !important;
        height: 220px !important;
        margin: 0 auto !important;
    }
}

/* Çok küçük ekranlar için (320px ve altı) */
@media (max-width: 320px) {
    .grid a {
        width: 180px !important;
    }
    
    .grid a > div {
        width: 180px !important;
        height: 180px !important;
    }
}