@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

body {
    background-color: #f5f5f5; /* Light gray */
    color: #212121; /* Dark gray text */
    font-family: "Roboto Mono", monospace;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    gap: 20px;
}

h1 {
    font-size: 32px;
    color: #37474f; /* Slate gray */
    margin: 0;
}

.generator {
    background-color: #ffffff; /* White card background */
    width: 350px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.generator:hover {
    transform: scale(1.03);
}

/* Password Input and Copy Button Section */
.password {
    display: grid;
    grid-template-columns: 1fr min-content;
    margin-bottom: 10px;
}

.password input {
    padding: 12px;
    background-color: #eeeeee; /* Light input field */
    border: 1px solid #37474f; /* Slate gray border */
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

/* Copy Button (Slate Gray) */
.password button {
    background-color: #37474f; /* Slate gray button */
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s ease;
}

.password button:hover {
    background-color: #263238; /* Charcoal gray on hover */
}

/* Input for Password Name */
.name input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f5; /* Light gray input field */
}

/* Generate & Save Button (Slate Gray) */
button.generate {
    width: 100%;
    padding: 15px;
    background-color: #37474f; /* Slate gray button */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.generate:hover {
    background-color: #263238; /* Charcoal gray on hover */
}

/* Clear and Download Buttons (Slate Gray) */
.history button {
    background-color: #37474f; /* Slate gray button */
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.history button:hover {
    background-color: #263238; /* Charcoal gray on hover */
}

/* Password History Section */
.history {
    text-align: left;
}

.history h3 {
    color: #37474f; /* Slate gray */
    font-weight: bold;
    margin-bottom: 10px;
}

.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Password History List */
.history ul {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.history ul li {
    background-color: #f5f5f5; /* Light gray */
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 5px;
    word-break: break-word;
    transition: background-color 0.3s ease;
}

.history ul li:hover {
    background-color: #e0e0e0; /* Slightly darker on hover */
}

.credit {
    text-align: center;  /* Center the text */
    font-size: 12px;     /* Smaller font size */
    color: #888888;      /* Gray color for the text */
    margin-top: 10px;    /* Space above the line */
    position: relative;   /* Keep it static in the flow */
    transition: none;     /* Remove any transitions */
}

.disclaimer {
    text-align: center; /* Center the text */
    font-size: 12px;    /* Smaller font size */
    color: #888888;     /* Gray color for the text */
    margin-top: 10px;   /* Space above the line */
}
