@font-face {
    font-family: 'Segment7Standard';
    src: url('https://cdn.jsdelivr.net/npm/segment7@1.0.0/fonts/Segment7Standard.woff2') format('woff2');
}

@keyframes pulse {
    0% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.85; transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(120%) translateY(-50%); opacity: 0; }
    to { transform: translateX(0) translateY(-50%); opacity: 1; }
}

@keyframes glow {
    0% { border-color: rgba(51, 255, 0, 0.5); }
    50% { border-color: rgba(32, 169, 86, 0.9); }
    100% { border-color: rgba(0, 134, 16, 0.5); }
}

body {
    margin: 0; padding: 0; overflow: hidden;
    font-family: 'Rajdhani', sans-serif; background: transparent;
}

.timer-container {
    position: absolute; top: 55%; right: 20px; transform: translateY(-50%);
    color: white; padding: 10px; display: none; min-width: 240px;
    animation: slideIn 1s forwards; background: linear-gradient(10deg, rgba(239, 240, 241, 0.65) 0%, rgba(49, 51, 56, 0.65) 10%);
    border-radius: 10px;
}

.timer-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 4px;
}

.timer-title {
    font-size: 24px; color: rgba(255, 255, 255, 1); font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-title::after {
    position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.6;
}

.timer-display {
    font-size: 24px; font-weight: 500; font-family: 'Segment7Standard', monospace;
    color: rgba(0, 255, 106, 0.98); margin: 6px 0; text-align: center;
}

.progress-container {
    height: 4px; margin-top: 8px; border-radius: 4px; background-color: rgba(255, 255, 255, 0.18);
}

.progress-bar {
    height: 100%; background: linear-gradient(90deg, rgba(0, 185, 16, 0.98) 0%, rgba(136, 255, 61, 0.98) 100%);
    transition: width 0.5s;
}

.timer-container.low-time {
    border: 2px solid rgba(237, 54, 21, 0.4); animation: pulse 1.2s infinite;
}

.glow-effect {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0;
    transition: opacity 0.6s ease; border-radius: 10px;
}

.timer-container.active .glow-effect {
    opacity: 1; animation: glow 2.5s infinite;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block; margin-bottom: 6px; font-weight: 500; color: rgba(255, 255, 255, 0.9);
}

.form-group input {
    width: 100%; padding: 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08); color: white;
}

.gang-info {
    margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.98);
    padding: 10px 0; border-radius: 4px; backdrop-filter: blur(2px);
}

.gang-tag {
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    padding: 6px 10px; border-radius: 8px; font-weight: 600; border: 1px solid rgba(93, 129, 97, 0.35);
    display: flex; justify-content: space-between; align-items: center;
}

.gang-tag:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.gang-tag .gang-name {
    flex: 1; text-align: left;
}

.gang-tag .rank {
    background: rgba(0, 0, 0, 0.3); color: rgb(255, 255, 255); padding: 2px 4px; border-radius: 4px;
    font-size: 12px; margin-right: 6px; min-width: 20px; text-align: center;
}

.gang-tag .count {
    color: rgb(0, 207, 97); font-size: 18px; font-weight: 600; display: inline-block;
    background: rgba(0, 0, 0, 0.25); padding: 2px 6px; border-radius: 4px;
}

.zone-notification {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    display: none;
    z-index: 9999;
    border: 2px solid #ff0000;
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.zone-notification.show {
    display: block;
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        border-color: rgba(255, 0, 0, 0.7);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    }
    50% {
        border-color: rgba(255, 69, 0, 0.9);
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
    }
    100% {
        border-color: rgba(255, 0, 0, 0.7);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    }
}

/* Add a subtle up/down movement */
@keyframes float {
    0% { transform: translateX(-50%) translateY(-5px); }
    50% { transform: translateX(-50%) translateY(5px); }
    100% { transform: translateX(-50%) translateY(-5px); }
}

.zone-notification.show {
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}