body {
    background: #ffffff !important;
    color: black;
}
.container {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .header {
            background: #2c3e50;
            color: white;
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 20px;
            font-weight: bold;
        }

        .logo-icon {
            width: 28px;
            height: 28px;
            background: #e74c3c;
            border-radius: 50%;
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
        }

        .hamburger {
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 3px;
            padding: 5px;
        }

        .hamburger span {
            width: 22px;
            height: 2px;
            background: white;
            border-radius: 1px;
            transition: 0.3s;
        }

        .menu {
            position: fixed;
            top: 0;
            right: -280px;
            width: 260px;
            height: 100vh;
            background: #34495e;
            transition: right 0.3s ease;
            z-index: 1000;
            padding-top: 60px;
        }

        .menu.active {
            right: 0;
        }

        .menu-item {
            display: block;
            padding: 12px 20px;
            color: white;
            border-bottom: 1px solid #2c3e50;
            cursor: pointer;
            transition: background 0.3s;
            font-size: 14px;
            text-decoration: none;
        }

        .menu-item:hover {
            background: #2c3e50;
            color: white;
        }

        .close-menu {
            position: absolute;
            top: 15px;
            right: 20px;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .compass-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
        }

        .compass-wrapper {
            position: relative;
            margin-bottom: 30px;
        }

        .compass {
            position: relative;
            width: 320px;
            height: 320px;
            border: 3px solid #34495e;
            border-radius: 50%;
            background: radial-gradient(circle at center, #ffffff 0%, #f8f9fa 30%, #e9ecef 100%);
            box-shadow: 
                0 0 20px rgba(0,0,0,0.1),
                inset 0 0 20px rgba(0,0,0,0.05);
        }

        .compass-face {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }

        .degree-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }

        .degree-mark {
            position: absolute;
            background: #2c3e50;
            transform-origin: 50% 160px;
            left: 50%;
        }

        .major-mark {
            width: 2px;
            height: 25px;
            margin-left: -1px;
            top: 0;
        }

        .minor-mark {
            width: 1px;
            height: 15px;
            margin-left: -0.5px;
            top: 5px;
        }

        .degree-number {
            position: absolute;
            font-size: 14px;
            font-weight: bold;
            color: #2c3e50;
            transform-origin: 50% 140px;
            left: 50%;
            top: 15px;
            margin-left: -8px;
            width: 16px;
            text-align: center;
        }

        .cardinal-direction {
            position: absolute;
            font-size: 24px;
            font-weight: bold;
            color: #e74c3c;
            transform: translate(-50%, -50%);
        }

        .north { top: 20px; left: 50%; }
        .south { bottom: 20px; left: 50%; }
        .east { right: 20px; top: 50%; }
        .west { left: 20px; top: 50%; }

        .intercardinal {
            position: absolute;
            font-size: 16px;
            font-weight: bold;
            color: #34495e;
            transform: translate(-50%, -50%);
        }

        /* Intercardinal directions को compass के अंदर सही position पर रखा गया है */
        .northeast { top: 60px; right: 60px; }
        .northwest { top: 60px; left: 60px; }
        .southeast { bottom: 60px; right: 60px; }
        .southwest { bottom: 60px; left: 60px; }

        .needle-container {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 4px;
            height: 140px;
            margin-left: -2px;
            margin-top: -70px;
            transform-origin: center;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10;
        }

        .needle {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .needle-north {
            position: absolute;
            top: 0;
            left: 50%;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 70px solid #e74c3c;
            margin-left: -6px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }

        .needle-south {
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 70px solid #3498db;
            margin-left: -6px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }

        .center-circle {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            background: radial-gradient(circle, #2c3e50 0%, #34495e 100%);
            border: 2px solid #ffffff;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            z-index: 20;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        .reading-display {
            text-align: center;
            background: rgba(255,255,255,0.9);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            min-width: 200px;
        }

        .degree-reading {
            font-size: 32px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 5px;
            font-family: 'Courier New', monospace;
        }

        .direction-reading {
            font-size: 18px;
            color: #7f8c8d;
            font-weight: 500;
        }

        .calibration-notice {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(52, 152, 219, 0.9);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            display: none;
        }

        .error-message {
            background: rgba(231, 76, 60, 0.9);
            color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin: 20px;
            display: none;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            display: none;
        }

        .overlay.active {
            display: block;
        }

        .permission-prompt {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            text-align: center;
            z-index: 1001;
            display: none;
        }

        .permission-button {
            background: #3498db;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 15px;
        }

        .permission-button:hover {
            background: #2980b9;
        }
        /* Footer CSS Niche */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px; /* Add margin to separate footer from content */
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
}

.footer a:hover {
    text-decoration: underline;
}
.footer .credit {
    margin-top: 15px;
    font-size: 12px;
}
/* Footer CSS Uapar */