
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #4a6fa5;
            --primary-dark: #3a5680;
            --secondary: #6d98ba;
            --accent: #ff6b6b;
            --light: #f8f9fa;
            --dark: #343a40;
            --gray: #6c757d;
            --border-radius: 12px;
            --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        body {
            background: linear-gradient(135deg, #e0f7fa 0%, #bbdefb 100%);
            color: var(--dark);
            min-height: 100vh;
            padding: 20px;
            transition: var(--transition);
        }

        body.dark {
            background: linear-gradient(135deg, #263238 0%, #37474f 100%);
            color: var(--light);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .app-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        body.dark .app-title {
            color: var(--secondary);
        }

        .theme-toggle {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: var(--box-shadow);
        }

        .theme-toggle:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        body.dark .theme-toggle {
            background: var(--secondary);
            color: var(--dark);
        }

        body.dark .theme-toggle:hover {
            background: #8ab3cf;
        }

        .search-container {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .search-box {
            display: flex;
            flex: 1;
            min-width: 300px;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .search-input {
            flex: 1;
            padding: 15px 20px;
            border: none;
            font-size: 16px;
            background: white;
            color: var(--dark);
        }

        body.dark .search-input {
            background: #455a64;
            color: white;
        }

        .search-input:focus {
            outline: none;
        }

        .search-button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 25px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }

        .search-button:hover {
            background: var(--primary-dark);
        }

        .action-button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background: white;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: var(--box-shadow);
        }

        body.dark .action-button {
            background: #455a64;
            color: white;
        }

        .action-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        }

        .action-button i {
            font-size: 18px;
        }

        .saved-locations {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 30px;
            align-items: center;
        }

        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: white;
            border: 2px solid var(--primary);
            border-radius: 30px;
            cursor: pointer;
            font-weight: 600;
            color: var(--primary);
            transition: var(--transition);
        }

        body.dark .dropdown-toggle {
            background: #455a64;
            border-color: var(--secondary);
            color: var(--secondary);
        }

        .dropdown-toggle:hover {
            background: var(--primary);
            color: white;
        }

        body.dark .dropdown-toggle:hover {
            background: var(--secondary);
            color: var(--dark);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: white;
            min-width: 200px;
            max-height: 300px;
            overflow-y: auto;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
            z-index: 1;
            margin-top: 5px;
        }

        body.dark .dropdown-content {
            background-color: #455a64;
        }

        .dropdown-content button {
            display: block;
            width: 100%;
            padding: 12px 16px;
            text-align: left;
            border: none;
            background: none;
            cursor: pointer;
            font-weight: 500;
            color: var(--dark);
            transition: var(--transition);
            border-bottom: 1px solid #f0f0f0;
        }

        body.dark .dropdown-content button {
            color: white;
            border-bottom: 1px solid #546e7a;
        }

        .dropdown-content button:last-child {
            border-bottom: none;
        }

        .dropdown-content button:hover {
            background-color: #f0f0f0;
        }

        body.dark .dropdown-content button:hover {
            background-color: #546e7a;
        }

        .dropdown.show .dropdown-content {
            display: block;
        }

        .location-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: white;
            border: 2px solid var(--primary);
            border-radius: 30px;
            cursor: pointer;
            font-weight: 600;
            color: var(--primary);
            transition: var(--transition);
        }

        body.dark .location-btn {
            background: #455a64;
            border-color: var(--secondary);
            color: var(--secondary);
        }

        .location-btn:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        body.dark .location-btn:hover {
            background: var(--secondary);
            color: var(--dark);
        }

        .hide {
            display: none;
        }

        .weather-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--box-shadow);
            margin-bottom: 30px;
            transition: var(--transition);
        }

        body.dark .weather-card {
            background: #455a64;
        }

        .weather-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .location {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
        }

        body.dark .location {
            color: var(--secondary);
        }

        .save-btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            transition: var(--transition);
        }

        .save-btn:hover {
            background: #ff5252;
            transform: translateY(-2px);
        }

        .weather-content {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        .weather-main {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 1;
        }

        .weather-icon {
            width: 100px;
            height: 100px;
        }

        .temperature {
            font-size: 48px;
            font-weight: 700;
        }

        .condition {
            font-size: 20px;
            color: var(--gray);
        }

        body.dark .condition {
            color: #b0bec5;
        }

        .weather-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            flex: 2;
        }

        .detail-card {
            background: #f1f8fe;
            padding: 20px;
            border-radius: var(--border-radius);
            text-align: center;
            transition: var(--transition);
        }

        body.dark .detail-card {
            background: #546e7a;
        }

        .detail-title {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 8px;
        }

        body.dark .detail-title {
            color: #b0bec5;
        }

        .detail-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
        }

        body.dark .detail-value {
            color: var(--secondary);
        }

        .error-message {
            background: #ffebee;
            color: #d32f2f;
            padding: 20px;
            border-radius: var(--border-radius);
            text-align: center;
            margin-bottom: 30px;
            box-shadow: var(--box-shadow);
        }

        body.dark .error-message {
            background: #7b1fa2;
            color: white;
        }

        .welcome-message {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray);
            font-size: 18px;
        }

        body.dark .welcome-message {
            color: #b0bec5;
        }

        .welcome-message i {
            font-size: 48px;
            margin-bottom: 20px;
            color: var(--primary);
        }

        body.dark .welcome-message i {
            color: var(--secondary);
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background-color: white;
            padding: 25px;
            border-radius: var(--border-radius);
            width: 90%;
            max-width: 400px;
            box-shadow: var(--box-shadow);
        }

        body.dark .modal-content {
            background-color: #455a64;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 600;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--gray);
        }

        .modal-input {
            width: 100%;
            padding: 12px;
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
        }

        body.dark .modal-input {
            background-color: #546e7a;
            border-color: #6d98ba;
            color: white;
        }

        .modal-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .modal-btn {
            padding: 10px 20px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }

        .modal-btn-primary {
            background-color: var(--primary);
            color: white;
        }

        .modal-btn-secondary {
            background-color: #e0e0e0;
            color: var(--dark);
        }

        body.dark .modal-btn-secondary {
            background-color: #546e7a;
            color: white;
        }

        footer {
            text-align: center;
            margin-top: 40px;
            color: var(--gray);
            font-size: 14px;
        }

        body.dark footer {
            color: #b0bec5;
        }

        @media (max-width: 768px) {
            .weather-content {
                flex-direction: column;
            }
            
            .search-box {
                min-width: 100%;
            }
            
            .weather-main {
                justify-content: center;
                text-align: center;
            }
            
            .saved-locations {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .dropdown {
                width: 100%;
            }
            
            .dropdown-toggle {
                width: 100%;
                justify-content: center;
            }
            
            .dropdown-content {
                width: 100%;
            }
        }