body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1e1e1e;
    margin: 0;
    padding: 0;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    background: #2c2c2c;
    color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
    text-align: center;
    padding-bottom: 10px;
}

nav {
    text-align: center;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    color: white;
}

.button-add {
    background-color: #4CAF50;
    color: white;
}

.button-add:hover {
    background-color: #45a049;
}

.button-login {
    background-color: #2196F3;
    color: white;
}

.button-login:hover {
    background-color: #1e87db;
}

.button-logout {
    background-color: #f44336;
    color: white;
}

.button-logout:hover {
    background-color: #d32f2f;
}

#searchInput {
    padding: 10px;
    width: 100%;
    height: 20px;
    border: none;
    border-radius: 3px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    margin: 0px -10px;
}

.category-section {
    margin-bottom: 30px;
}

.category-title {
    color: #a0a0a0;
    border-bottom: 1px solid #a0a0a0;
    padding-bottom: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: normal;
}

.toggle-icon {
    font-size: 1em;
    font-weight: bold;
}

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

.link-card {
    background: #2c2c2c;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-content {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e0e0e0;
    padding: 15px;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.link-text {
    font-size: 0.9em;
}

.admin-links {
    display: flex;
    justify-content: space-around;
    padding: 5px;
}

.edit-link, .delete-link {
    padding: 3px 6px;
    text-decoration: none;
    color: #e0e0e0;
    border-radius: 3px;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.edit-link {
    border: 1px solid #494949;
}

.edit-link:hover {
    background-color: #45a04950;
}

.delete-link {
    border: 1px solid #494949;
}

.delete-link:hover {
    background-color: #d32f2f50;
}

@media(max-width: 600px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Estilos para o formulário de edição */
.edit-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #2c2c2c;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edit-form h2 {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #e0e0e0;
    border: none;
    border-bottom: 1px solid #555;
    outline: none;
    background: transparent;
    transition: border-color 0.2s;
}

.form-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: 0.2s ease all;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label {
    top: -20px;
    font-size: 14px;
    color: #4CAF50;
}

.form-group input:focus {
    border-bottom: 2px solid #4CAF50;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.checkbox-group label {
    position: static;
    color: #e0e0e0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.1s;
}

.button:active {
    transform: scale(0.98);
}

.button-save {
    background-color: #4CAF50;
    color: white;
}

.button-save:hover {
    background-color: #45a049;
}

.button-cancel {
    background-color: #f44336;
    color: white;
}

.button-cancel:hover {
    background-color: #d32f2f;
}

/* Estilos para a página de exclusão */
.delete-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1e1e1e;
}

.delete-card {
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.delete-card h2 {
    color: #f44336;
    text-align: center;
    margin-bottom: 20px;
}

.delete-card p {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
}

.link-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.link-preview .icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.link-preview .link-text {
    color: #e0e0e0;
    font-size: 16px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.1s;
}

.button:active {
    transform: scale(0.98);
}

.button-delete {
    background-color: #f44336;
    color: white;
}

.button-delete:hover {
    background-color: #d32f2f;
}

.button-cancel {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.button-cancel:hover {
    background-color: rgba(224, 224, 224, 0.1);
}

.error {
    color: #f44336;
    text-align: center;
    margin-bottom: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.modal-content h3 {
    margin-top: 0;
    color: #e0e0e0;
}

.modal-content p {
    color: #a0a0a0;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: space-around;
}

.button-delete, .button-cancel {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.button-delete {
    background-color: #f44336;
    color: white;
}

.button-cancel {
    background-color: #4CAF50;
    color: white;
}

.decks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}