/* --- General Body and Theme --- */
body {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

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

.modal-content {
    background: #2c2c2c;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

/* --- Main App Styling --- */
#appContainer {
    max-width: 1600px;
    margin: auto;
}

header h1 {
    font-weight: bold;
    color: #ffffff;
}

/* --- Navigation --- */
.nav-pills .nav-link {
    color: #a0a0a0;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* --- NFT Card Styling --- */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.nft-card {
    background: rgba(44, 44, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.nft-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.nft-card-body {
    padding: 15px;
}

.nft-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-card-text {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.locked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* --- Form and Input Styling --- */
.form-section {
    background: #2c2c2c;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-control {
    background-color: #333;
    border-color: #444;
    color: #f0f0f0;
}

.form-control:focus {
    background-color: #333;
    border-color: #007bff;
    color: #f0f0f0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}
