/* General Body and Text Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa; /* Light blue-gray background */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: #007bff !important;
    height: 56px;
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: auto; /* Align logo to the left */
}

.navbar-nav {
    margin-left: auto !important; /* Ensure nav items are aligned to the right */
}

.navbar-brand:hover {
    color: #e2e6ea !important;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 1rem;
    padding: 15px;
}

.navbar-nav .nav-link:hover {
    color: #dfe6e9 !important;
}

/* Sidebar Styling */
#sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 200px;
    height: calc(100vh - 56px);
    background-color: #343a40;
    color: #fff;
    overflow-y: auto;
    padding-top: 20px;
}

#sidebar .sidebar-header {
    padding: 10px 15px;
    background-color: #444;
    text-align: center;
}

#sidebar .nav-link {
    color: #adb5bd !important;
    padding: 10px 15px;
    font-size: 1rem;
}

#sidebar .nav-link:hover {
    background-color: #495057;
    color: #fff !important;
}

#sidebar .nav-link i {
    margin-right: 8px;
}

/* Main Content Area */
.content-area {
    padding: 20px;
    background-color: #f5f7fa;
    min-height: calc(100vh - 56px - 60px); /* Viewport height minus navbar and footer */
    margin-left: 200px; /* Adjust based on sidebar width */
}

/* Content Box */
.content-box {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-box h2, .content-box h3 {
    margin-top: 0;
    color: #343a40;
    text-align: center;
}

.content-box.primary {
    border-left: 5px solid #007bff; /* Bright blue border on the left */
}

.content-box.success {
    border-left: 5px solid #28a745; /* Green border */
}

.content-box.warning {
    border-left: 5px solid #ffc107; /* Yellow border */
}

.content-box.danger {
    border-left: 5px solid #dc3545; /* Red border */
}

/* Table Styling */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: #212529;
    font-size: 0.9rem; /* Smaller, cleaner text for a more compact look */
}

.table th,
.table td {
    padding: 0.5rem; /* Reduce padding for a more compact look */
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #343a40;
    color: #fff;
    text-align: center;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #ecf0f1;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0069d9;
    color: #fff;
}

.btn-success {
    background-color: #28a745;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-success i {
    font-size: 1.2rem;
}

.btn-success:hover {
    background-color: #218838;
}

/* Flash Messages */
.flash-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.flash-message.warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Footer Styling */
footer {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    #sidebar {
        display: none; /* Hide sidebar on small screens */
    }
    .content-area {
        margin-left: 0;
    }
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Adjustments for Icons */
.nav-link i {
    margin-right: 5px;
}

/* Modal Styling */
.modal-header, .modal-body, .modal-footer {
    padding: 15px;
}

.modal-header {
    background-color: #007bff;
    color: #fff;
}

/* Button Alignments for Table Headers */
.d-flex.justify-content-between {
    align-items: center;
    padding-bottom: 10px;
}

/* Table Action Buttons */
.btn-warning.btn-sm.edit-phone-details {
    background-color: #ffc107;
    color: #343a40;
    border: none;
}

.btn-warning.btn-sm.edit-phone-details:hover {
    background-color: #e0a800;
    color: #343a40;
}

/* Box Styling for Tables */
.p-3.border.rounded.mb-4 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
}

/* Adjust the size of the add-phone button */
#add-phone {
    width: 30px;
    height: 30px;
    padding: 0;
    position: relative;
    top: 0px;
}

/* Adjust the icon size inside the add-phone button */
#add-phone i {
    font-size: 0.8rem;
    line-height: 1;
    position: relative;
    top: 0px;
}

/* Optional: Remove default margin from h4 in sidebar */
#sidebar h4 {
    margin-bottom: 0;
}

/* Optional: Adjust spacing between h4 and button */
#sidebar .d-flex {
    gap: 5px;
}

/* Main Content Area */
.main-content {
    margin-left: 200px;
    margin-top: 56px;
    padding: 20px;
    background-color: #f5f7fa;
    min-height: calc(100vh - 200px);
}

/* Seed Phrase Styling */
.seed-phrase-container {
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.seed-word {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

.seed-word .word-number {
    font-weight: bold;
    margin-right: 5px;
}

/* Adjust headings */
.content-box h5 {
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .seed-word {
        font-size: 0.9rem;
    }
}

/* Flash Messages Styling */

/* Base Styling for All Flash Messages */
.message {
    position: relative;
    max-width: 500px; /* Medium width */
    width: 90%; /* Responsive width */
    padding: 10px 20px; /* Thin padding */
    margin: 10px auto; /* Centered horizontally with vertical spacing */
    border-radius: 4px; /* Slightly rounded corners */
    background-color: #f0f0f0; /* Default background color */
    color: #333; /* Default text color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: flex;
    align-items: center;
    font-size: 1rem; /* Readable text size */
    cursor: pointer; /* Indicates dismissibility */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth hide animation */
}

/* Success Message */
.message.success {
    background-color: #d4edda; /* Light green background */
    color: #155724; /* Dark green text */
    border-left: 4px solid #28a745; /* Green accent border */
}

.message.success::before {
    content: "\2714"; /* Unicode Checkmark */
    color: #28a745; /* Green color matching border */
    margin-right: 10px; /* Spacing between icon and message */
    font-size: 1.2rem; /* Icon size */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Error Message */
.message.error {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text */
    border-left: 4px solid #dc3545; /* Red accent border */
}

.message.error::before {
    content: "\26A0"; /* Unicode Warning Sign */
    color: #dc3545; /* Red color matching border */
    margin-right: 10px; /* Spacing between icon and message */
    font-size: 1.2rem; /* Icon size */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Warning Message */
.message.warning {
    background-color: #fff3cd; /* Light yellow background */
    color: #856404; /* Dark yellow text */
    border-left: 4px solid #ffc107; /* Yellow accent border */
}

.message.warning::before {
    content: "\26A0"; /* Unicode Warning Sign */
    color: #ffc107; /* Yellow color matching border */
    margin-right: 10px; /* Spacing between icon and message */
    font-size: 1.2rem; /* Icon size */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Info Message */
.message.info {
    background-color: #d1ecf1; /* Light blue background */
    color: #0c5460; /* Dark blue text */
    border-left: 4px solid #17a2b8; /* Blue accent border */
}

.message.info::before {
    content: "\2139"; /* Unicode Information Symbol */
    color: #17a2b8; /* Blue color matching border */
    margin-right: 10px; /* Spacing between icon and message */
    font-size: 1.2rem; /* Icon size */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Hidden State for Flash Messages */
.message.hidden {
    opacity: 0; /* Fully transparent */
    transform: translateY(-20px); /* Move upwards */
    visibility: hidden; /* Remove from layout */
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .message {
        max-width: 90%; /* Reduce max-width on small screens */
        padding: 8px 15px; /* Adjust padding for smaller screens */
        font-size: 0.9rem; /* Slightly smaller text */
    }

    .message::before {
        margin-right: 8px; /* Reduce spacing on small screens */
        font-size: 1rem; /* Smaller icon size */
    }
}
