/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

/* Header Styles */
header {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    color: #fff;
    padding: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
    overflow: hidden;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

header .logo {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 2.5em;
    text-align: center;
}

.main-nav ul li a:hover {
    text-decoration: underline;
}

/* Tab Styles */

.tabs {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 17px;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    flex-grow: 1;
    text-align: center;
}

.tab-button:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 3px solid #007bff;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    flex-grow: 1;
}

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

.main-nav {
    background-color: #333;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #00d4ff;
}

.main-nav ul li a:hover {
    text-decoration: underline;
}

#modal-key-content textarea {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
}

#modal-key-content p {
    margin: 5px 0;
}

#modal-key-content strong {
}

#delete-key-button {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

#delete-key-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    font-size: 16px;
}

.main-nav ul li a:hover {
    text-decoration: underline;
}

#key-generation-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.tab-content section {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
}

textarea {
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Input Styles */

input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button Styles */

button:not(.tab-button) {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #007bff, #00d4ff);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.main-nav ul li a:hover {
}

button:not(.tab-button):hover {
    background: linear-gradient(45deg, #0056b3, #0094cc);
    transform: translateY(-2px);
}

/* Form Section Styles */

#key-generation-section input,
#key-generation-section textarea,
#address-book-section textarea,
#generate-section textarea,
#read-section textarea,
#key-generation-section select,
#generate-section select,
#read-section select {
    width: 100%;
     border: 1px solid #ccc;
     border-radius: 5px;
     font-size: 16px;
}

/* Key Management Textarea Styles */
#key-generation-section textarea,
#address-book-section textarea {
    height: 150px;
     margin-bottom: 10px;
     padding: 10px;
     border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#read-section textarea {
    width: 100%;
}

/* Key Management Textarea Styles */
#key-generation-section textarea,
#address-book-section textarea {
    height: 150px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    header .logo {
        display: block;
        float: none;
        margin: 0 auto 10px;
    }

    header h1 {
        font-size: 1.5em;
        text-align: center;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        border-radius: 0;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

/* QR Code Styles */

.qr-code-container {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.qr-code {
    max-width: 100%;
    height: auto;
}
 
 .qr-code-container {
    display: block;
     text-align: center;
     margin-bottom: 20px;
 }
 
 .qr-code {
     max-width: 100%;
     height: auto;
 }