.name {
    font-family: "Tektur", sans-serif;
    color: #d8b4ff;
}

body {
    background-color: #1a1625;
    color: #e0e0e0;
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #2d1b4e;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #d8b4ff;
    font-family: "Tektur", sans-serif;
}

header p {
    margin: 0;
    font-size: 1.2em;
    color: #b19cd9;
    font-family: "Raleway", sans-serif;
}

main {
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

#add-account {
    background-color: #2d1b4e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
    margin-bottom: 20px;
    border: 1px solid #553399;
}

#add-account h2 {
    margin-top: 0;
    color: #d8b4ff;
    font-family: "Tektur", sans-serif;
}

#add-account form {
    display: flex;
    flex-direction: column;
}

#add-account label {
    margin-bottom: 5px;
    color: #b19cd9;
    font-family: "Raleway", sans-serif;
}

#add-account input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #553399;
    border-radius: 4px;
    background-color: #1a1625;
    color: #e0e0e0;
    font-family: "Raleway", sans-serif;
}

#add-account input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

#add-account button {
    padding: 12px;
    background-color: #a855f7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    font-family: "Raleway", sans-serif;
}

#add-account button:hover {
    background-color: #9333ea;
}

#color-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#color-picker input[type="radio"] {
    display: none;
}

.color-option {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

#color-picker input[type="radio"]:checked + .color-option {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

.color-option:hover {
    transform: scale(1.1);
}

#codes {
    background-color: #2d1b4e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
    border: 1px solid #553399;
}

.codes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#codes h2 {
    margin: 0;
    color: #d8b4ff;
    font-family: "Tektur", sans-serif;
}

.export-import-buttons {
    display: flex;
    gap: 8px;
}

.secondary-btn {
    padding: 8px 16px;
    background-color: #6b21a8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    font-family: "Raleway", sans-serif;
    transition: all 0.15s ease;
}

.secondary-btn:hover {
    background-color: #7c3aed;
    transform: translateY(-1px);
}

.secondary-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.5);
}

#codes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.code-item {
    background-color: #1a1625;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2);
    border: 1px solid #553399;
    transition: all 0.3s ease;
    border-left: 5px solid #a855f7;
    position: relative;
}

.code-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.4);
    border-color: #7c3aed;
}

.code-item h3 {
    margin: 0 0 10px;
    color: #d8b4ff;
    font-family: "Raleway", sans-serif;
}

.code-item .code {
    font-family: "JetBrains Mono", monospace;
    font-size: 2em;
    font-weight: bold;
    color: #e5cbff;
    user-select: all;
    padding: 10px;
    background-color: #2d1b4e;
    border-radius: 4px;
    margin: 10px 0;
}

.code-item .delete-btn {
    padding: 6px 12px;
    background-color: #6b21a8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: "Raleway", sans-serif;
}

.code-item .delete-btn:hover {
    background-color: #7c3aed;
}

footer {
    margin-top: 20px;
    color: #b19cd9;
    font-family: "Raleway", sans-serif;
    text-align: center;
}

footer a {
    color: #b19cd9;
}

footer a:hover {
    color: #ffffff;
}