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

.modal-content {
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    position: relative;
}

.close-button {
    position: fixed;
    /* top: 10px;
    right: 10px; */
    font-size: 24px;
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 25%;
    width: 1em;
    text-align: center;
    background-color: #eee;
    margin-left: -15px;
    margin-top: -15px;
}
.close-button:hover {
    background-color: #ccf;
}

.claves-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.claves-table th, .claves-table td {
    border: 1px solid #555;
    padding: 8px;
    text-align: left;
}

.claves-table th {
    background-color: #444;
}

.claves-table button {
    /* margin-right: 5px; */
    padding: 0;
    cursor: pointer;
    scale: 0.8;
    width: 34px;
}

/* light mode support using invert class */
body.invert .modal-content {
    background-color: #fff;
    color: #333;
}

body.invert .claves-table th {
    background-color: #f2f2f2;
}

body.invert .claves-table th, 
body.invert .claves-table td {
    border-color: #ddd;
}

.botones-memoria {
    margin: 20px auto;
    background-color: #191919;
    border: 1px solid #000;
    border-radius: 6px;
    display: inline;
    padding: 12px 2px 16px 2px;
}
body.invert .botones-memoria {
    background-color: #eee;
}
.botones-memoria button {
    background: none;
    border: none;
    font-size: 1.6em;
    filter: grayscale(1);
}
.botones-memoria button:hover {
    scale: 1.3;
    filter: grayscale(0);
}
.botones-memoria button:active {
    scale: 0.9;
}
.rojito {
    background-color: #FFCCCC;
}
.clearClaves {
    margin: 30px;
    background-color: #FF9999;
}

/* SHARE & QRCODE */
/* Modal Styles */
.share-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.share-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.share-close-button:hover {
    color: #000;
}

/* Share URL Container */
.share-url-container {
    margin: 20px 0;
}

.share-url-input {
    width: 96%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 14px;
}

.share-url-container button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.share-url-container button:hover {
    background-color: #45a049;
}

/* QR Code Container */
.qr-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qrcode {
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Title */
.share-modal-content h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

a {
    text-decoration: none;
    color: darkred;
}
a:hover {
    text-decoration: underline;
    color: #b50000
}
a:visited {
    color: #440000
}
a:active {
    text-decoration: underline;
    color: #c59100
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .share-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .share-url-input {
        font-size: 12px;
    }
}