:root {
        --primary: #1a4731;
        --secondary: #2d6a4f;
        --tertiary: #40916c;
        --accent: #d4a373;
        --text: #faf6f1;
        --shadow-light: rgba(26, 71, 49, 0.2);
        --shadow-dark: rgba(26, 71, 49, 0.3);
        --border-light: rgba(212, 163, 115, 0.2);
        --border: rgba(212, 163, 115, 0.3);
        --bg-overlay: rgba(250, 246, 241, 0.1);
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html, body {
        height: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    body {
        font-family: 'Segoe UI', 'Roboto', sans-serif;
        background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
        color: var(--text);
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: 1.6;
        padding: 10px;
    }

    .container {
        max-width: 380px;
        width: 100%;
        background: rgba(26, 71, 49, 0.25);
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 10px 30px var(--shadow-dark), 0 8px 32px rgba(26, 71, 49, 0.2);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        margin: 15px 0;
    }

    .header {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 10px;
        padding: 10px;
        background: rgba(64, 145, 108, 0.15);
        border-radius: 15px;
        color: var(--accent);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: 1px;
        border: 1px solid var(--border-light);
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
        color: rgba(250, 246, 241, 0.9);
        font-weight: 500;
    }

    .date {
        font-size: 1rem;
        margin: 10px 0 15px;
        color: var(--accent);
        font-weight: 500;
        background: rgba(64, 145, 108, 0.15);
        padding: 8px 12px;
        border-radius: 10px;
        display: inline-block;
    }

    .clock-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }

    .clock-round {
        position: relative;
        width: 100px;
        height: 100px;
        border: 4px solid var(--accent);
        border-radius: 50%;
        margin: 10px auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(45, 106, 79, 0.2);
        box-shadow: 0 0 20px rgba(212, 163, 115, 0.3);
    }

    .hand {
        position: absolute;
        transform-origin: bottom;
        bottom: 50%;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 5px;
    }

    .hour-hand {
        width: 4px;
        height: 30px;
        background: var(--accent);
    }

    .minute-hand {
        width: 3px;
        height: 38px;
        background: var(--accent);
    }

    .second-hand {
        width: 2px;
        height: 45px;
        background: var(--tertiary);
    }

    .clock-center {
        position: absolute;
        width: 8px;
        height: 8px;
        background: var(--accent);
        border-radius: 50%;
        z-index: 10;
    }

    .clock-text {
        font-size: 1rem;
        margin: 10px 0;
        color: var(--text);
        font-weight: 500;
    }

    .form {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 15px 0;
    }

    label {
        font-size: 0.95rem;
        color: var(--accent);
        font-weight: 500;
        text-align: left;
        margin-bottom: 3px;
    }

    select, input {
        padding: 12px;
        font-size: 0.95rem;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: rgba(45, 106, 79, 0.2);
        color: var(--text);
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    select:hover, input:hover {
        background: rgba(64, 145, 108, 0.3);
        border-color: var(--accent);
    }

    select:focus, input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.3);
    }

    .search-container {
        position: relative;
        width: 100%;
    }

    #citySearch {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: rgba(45, 106, 79, 0.2);
        color: var(--text);
    }

    #citySearch::placeholder {
        color: rgba(250, 246, 241, 0.6);
    }

    .suggestions-list {
        position: absolute;
        background-color: rgba(26, 71, 49, 0.95);
        margin: 0;
        padding: 0;
        list-style-type: none;
        border-radius: 10px;
        width: 100%;
        z-index: 20;
        max-height: 200px;
        overflow-y: auto;
        border: 1px solid var(--border);
        box-shadow: 0 10px 20px var(--shadow-dark);
        display: none;
    }

    .suggestions-list li {
        padding: 10px 12px;
        cursor: pointer;
        color: var(--text);
        border-bottom: 1px solid var(--border-light);
        transition: background 0.2s ease;
    }

    .suggestions-list li:hover {
        background-color: rgba(64, 145, 108, 0.4);
        color: var(--accent);
    }

    .result {
        padding: 15px;
        background: rgba(26, 71, 49, 0.3);
        border-radius: 15px;
        margin-top: 15px;
        text-align: left;
        box-shadow: 0 8px 15px var(--shadow-light);
        border: 1px solid var(--border-light);
    }

    .result h3 {
        color: var(--accent);
        font-size: 1.3rem;
        margin: 0 0 12px 0;
        text-align: center;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-light);
    }

    .prayer-times {
        display: grid;
        gap: 8px;
    }

    .prayer-times div {
        background: rgba(45, 106, 79, 0.2);
        padding: 10px 12px;
        border-radius: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid var(--border-light);
    }

    .prayer-times div:hover {
        transform: translateX(5px);
        background: rgba(64, 145, 108, 0.3);
        border-color: var(--accent);
    }

    .prayer-times i {
        color: var(--accent);
        font-size: 1.1rem;
        width: 25px;
        margin-right: 8px;
    }

    .prayer-name {
        flex: 1;
        font-weight: 500;
    }

    .prayer-time {
        font-weight: 600;
        color: var(--accent);
    }

    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--accent), var(--tertiary));
        color: var(--primary);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 8px 15px var(--shadow-dark);
        text-decoration: none;
        z-index: 1000;
        border: 2px solid var(--border-light);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .floating-button:hover {
        background: linear-gradient(135deg, var(--tertiary), var(--accent));
        transform: scale(1.1);
        box-shadow: 0 12px 20px var(--shadow-dark);
    }

    .floating-button i {
        font-size: 1.4rem;
    }

    @media (max-width: 480px) {
        body {
            padding: 5px;
            align-items: flex-start;
            padding-top: 10px;
        }

        .container {
            padding: 15px;
            width: 95%;
            margin: 5px auto;
            border-radius: 15px;
        }

        .header {
            font-size: 1.8rem;
            padding: 8px;
            margin-bottom: 8px;
        }

        .subtitle {
            font-size: 0.9rem;
        }

        .date {
            font-size: 0.9rem;
        }

        .clock-round {
            width: 80px;
            height: 80px;
            border-width: 3px;
        }

        .hour-hand {
            height: 24px;
            width: 3px;
        }

        .minute-hand {
            height: 30px;
            width: 2px;
        }

        .second-hand {
            height: 35px;
            width: 1px;
        }

        .clock-center {
            width: 6px;
            height: 6px;
        }

        .clock-text {
            font-size: 0.9rem;
        }

        .form {
            margin: 10px 0;
            gap: 5px;
        }

        label {
            font-size: 0.9rem;
        }

        select, input {
            padding: 10px;
            font-size: 0.9rem;
        }

        .result {
            padding: 12px;
            margin-top: 10px;
        }

        .result h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .prayer-times div {
            padding: 8px 10px;
        }

        .prayer-times i {
            font-size: 1rem;
            margin-right: 5px;
        }

        .floating-button {
            width: 45px;
            height: 45px;
            bottom: 15px;
            right: 15px;
        }

        .floating-button i {
            font-size: 1.2rem;
        }
    }

    @media (min-width: 481px) and (max-width: 767px) {
        .container {
            max-width: 440px;
        }
    }

    @media (min-width: 768px) {
        .container {
            max-width: 500px;
            padding: 25px;
        }
        
        .header {
            font-size: 2.2rem;
        }
        
        .clock-round {
            width: 120px;
            height: 120px;
        }
        
        .prayer-times {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .prayer-times div {
            padding: 12px 15px;
        }
    }