
        /* --- GLOBAL & VARIABLES (Restored to Second-Last Revision) --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: inherit; 
        }

        /* --- USER-DEFINED VARIABLES (RESTORED) --- */
        :root {
            --primary: #00ff88;
            --secondary: #0099ff;
            --accent: #ff3366;
            --dark: #0a0a0a;
            --dark-gray: #1a1a1a;
            --gray: #2a2a2a;
            --light: #f5f5f5;
            --transition: all 0.3s ease;
            --bg-color: var(--dark);
            --card-bg: var(--dark-gray);
            --border-color: rgba(255, 255, 255, 0.2);
            --success: #4CAF50;
            --warning: #FFB74D; 
            --danger: #FF5252; 
        }

        /* Light theme (RESTORED) */
        [data-theme="light"] {
            --primary: #0099ff;
            --secondary: #00cc88;
            --accent: #ff3366;
            --dark: #f5f5f5; 
            --dark-gray: #ffffff; 
            --gray: #e0e0e0;
            --light: #0a0a0a; 
            --bg-color: var(--dark);
            --card-bg: var(--dark-gray);
            --border-color: rgba(0, 0, 0, 0.1);
        }

        /* body {
            background-color: var(--bg-color); 
            color: var(--light);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            overflow-x: hidden;
            transition: var(--transition);
        } */
        
        .container {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            padding-top: 20px; 
        }

        /* --- DASHBOARD STYLES (RESTORED) --- */
        .dashboard {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
            margin-top: 20px;
        }

        @media (max-width: 768px) {
            .dashboard {
                grid-template-columns: 1fr;
            }
        }

        .health-card, .analysis-card {
            background: var(--card-bg); 
            border: 1px solid var(--border-color); 
            border-radius: 20px;
            padding: 25px;
            transition: var(--transition);
        }

        .health-score {
            text-align: center;
            margin: 20px 0;
        }

        .score-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: conic-gradient(var(--success) 0%, var(--success) 0%, rgba(255,255,255,0.1) 0%);
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .score-circle::before {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            background: var(--card-bg); 
            border-radius: 50%;
        }

        .score-value {
            position: relative;
            font-size: 2rem;
            font-weight: bold;
            color: var(--light);
        }

        .health-message {
            margin-top: 15px;
            font-size: 1.1rem;
        }

        .analysis-list {
            list-style: none;
            margin-top: 20px;
        }

        .analysis-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
        }

        .analysis-item i {
            font-size: 1.2rem;
        }

        .fa-check-circle { color: var(--success); }
        .fa-exclamation-circle { color: var(--warning); }
        .fa-times-circle { color: var(--danger); }

        /* --- GENERATOR CARD STYLES (RESTORED) --- */
        .generator-card {
            background: var(--card-bg); 
            border: 1px solid var(--border-color); 
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            margin-bottom: 30px;
        }

        .password-display {
            background: rgb(0 0 0 / 5%);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* NEW: Text Shadow Added & Dynamic Coloring Classes Included */
        .password-text { 
            font-size: 1.2rem; 
            letter-spacing: 0.5px;
            word-break: break-all;
            padding-right: 15px;
            color: var(--light);
            /* Text Shadow */
            text-shadow: 0 0 5px rgba(0, 255, 136, 0.5), 0 0 10px rgba(0, 0, 0, 0.2); 
        }
        
        /* Dynamic Character Coloring Classes */
        .password-char.upper { color: var(--primary); font-weight: 600; }
        .password-char.lower { color: var(--light); }
        .password-char.number { color: var(--secondary); font-weight: 700; }
        .password-char.symbol { color: var(--accent); font-weight: 700; }
        .password-char.delimiter { color: var(--warning); }
        /* END: Text Shadow & Coloring */


        .copy-btn {
            background: var(--primary);
            border: none;
            border-radius: 10px;
            color: var(--dark); 
            padding: 10px 15px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            white-space: nowrap; 
        }

        .copy-btn:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }

        .options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .option-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .option-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
        }

        .option-label i {
            color: var(--primary);
        }

        .length-slider {
            width: 100%;
            margin: 10px 0;
            accent-color: var(--secondary);
        }

        .length-value {
            text-align: center;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary);
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .checkbox-group input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        /* Delimiter Select/Input Styling (Fixed Color) */
        #delimiterSelect, #customDelimiter {
            background: var(--card-bg); 
            border: 1px solid var(--border-color); 
            border-radius: 10px; 
            padding: 10px; 
            color: var(--light); 
            width: 100%;
            margin-top: 5px;
        }

        #delimiterSelect {
            appearance: none;
            cursor: pointer;
            padding-right: 30px; 
        }
        
        /* FIX: Ensure Option text is visible */
        #delimiterSelect option {
            color: var(--dark); /* Dark text */
            background-color: var(--light); /* Light background */
        }

        .preset-buttons {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .preset-btn {
            background: rgba(0, 0, 0, 0.2); 
            border: 1px solid var(--primary);
            border-radius: 10px;
            color: var(--light);
            padding: 8px 15px;
            cursor: pointer;
            transition: var(--transition);
        }

        .preset-btn:hover {
            background: var(--primary);
            color: var(--dark); 
        }

        .generate-btn {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            border: none;
            border-radius: 50px;
            color: var(--dark); 
            padding: 18px 30px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 10px;
        }

        .generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(0, 255, 136, 0.3);
        }

     .passphrase   h3 i {
    color: var(--primary);
}

        /* --- HISTORY & SUGGESTIONS (RESTORED) --- */
        .ai-suggestions, .password-history {
            background: var(--card-bg); 
            border: 1px solid var(--border-color); 
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
        }
        
        /* FIX: Corrected Suggestion Item CSS */
        .suggestions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .suggestion-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            word-break: break-all;
        }

        .suggestion-item:hover {
            background: rgba(0, 153, 255, 0.3); /* Vibrant Blue Hover */
            transform: translateY(-2px);
            border-color: var(--secondary);
        }
        /* END: Corrected Suggestion Item CSS */
        
        .history-list {
            max-height: 200px;
            overflow-y: auto;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color); 
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        .history-password {
            font-family: monospace;
            letter-spacing: 1px;
            word-break: break-all; 
        }


        /* mycss */


 .suggestion-item:hover {
        background: rgba(0, 153, 255, 0.3);
        transform: translateY(-2px);
    }
 .history-title {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        margin-bottom: 20px;
        font-size: 1.3rem;
    }
     .history-title-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }
 .history-title i {
        color: var(--primary);
    }
     .history-actions-header {
        display: flex;
        align-items: center;
        gap: 15px; 
    }
 #clearHistoryBtn {
        background: rgba(255, 82, 82, 0.1); 
        border: 1px solid var(--danger);
        border-radius: 12px; 
        color: var(--danger);
        padding: 8px 12px; 
        cursor: pointer;
        font-size: 0.95rem; 
        font-weight: 600; 
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 6px; 
        white-space: nowrap; 
    }

    .container.passphrase {
    color: var(--light);
}

.container.passphrase h3 {
    color: var(--light);
      
}

    .passphrase #clearHistoryBtn:hover {
        background: var(--danger);
        color: var(--light);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(255, 82, 82, 0.2);
    }

.passphrase  .clear-success-msg {
        color: var(--success);
        font-weight: 600;
        font-size: 0.9rem;
        opacity: 1;
        transition: opacity 0.3s ease-out;
        white-space: nowrap;
    }

   .passphrase .history-list {
        max-height: 200px;
        overflow-y: auto;
    }

.passphrase .history-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--glass-border);
    }
 .passphrase .history-item:last-child {
        border-bottom: none;
    }
.passphrase .history-password {
        font-family: monospace;
        letter-spacing: 1px;
    }

  .passphrase .history-actions {
        display: flex;
        gap: 10px;
    }

    /* Button styles inside history actions */
   .passphrase .history-actions button {
        background: none;
        border: none;
        color: var(--light);
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.3s;
    }

    .passphrase  .history-actions button:hover {
        opacity: 1;
    }

   .passphrase  .tabs {
        display: flex;
        margin-bottom: 20px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        padding: 5px;
    }

     .passphrase  .tab {
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 8px;
        transition: var(--transition);
        text-align: center;
        flex: 1;
        color: var(--light); 
    }


        /* --- TABS & MEDIA QUERIES (RESTORED) --- */
        .passphrase  .tabs {
            display: flex;
            margin-bottom: 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 5px;
        }

       .passphrase  .tab {
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 8px;
            transition: var(--transition);
            text-align: center;
            flex: 1;
            color: var(--light); 
        }

       .passphrase  .tab.active {
            background: var(--primary);
            color: var(--dark); 
            font-weight: 600;
        }

        .passphrase  .tab-content {
            display: none;
        }

        .passphrase .tab-content.active {
            display: block;
        }

        @media (max-width: 600px) {
            .generator-card, .ai-suggestions, .password-history, .health-card, .analysis-card {
                padding: 20px;
            }
            .password-text {
                font-size: 1.1rem;
            }
            .suggestions-grid {
                grid-template-columns: 1fr 1fr;
            }
            .dashboard {
                grid-template-columns: 1fr;
            }
            .options {
                grid-template-columns: 1fr;
            }
        }
    