@font-face {
    font-family: 'BingBong';
    src: url('media/bingbong_revised.otf') format('opentype');
}

:root {
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --mid-gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --yellow: #ffd700;
    --yellow-dark: #e6c200;
    --yellow-light: #fff4b3;
    --text-light: #ffffff;
    --text-dim: #b0b0b0;
    --danger: #ff4444;
    --success: #00ff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('media/bingbongcursor.png'), auto;
}

body {
    font-family: 'BingBong', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--text-light);
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at 50% 50%, var(--dark-gray) 0%, var(--black) 100%);
}

.login-card {
    background: var(--dark-gray);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--mid-gray);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

.login-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.biometric-btn {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: var(--black);
    border: none;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.biometric-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.biometric-btn:active {
    transform: scale(0.98);
}

.fingerprint-icon {
    width: 30px;
    height: 30px;
    animation: fingerScan 2s ease-in-out infinite;
}

@keyframes fingerScan {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--mid-gray);
}

.divider span {
    position: relative;
    background: var(--dark-gray);
    padding: 0 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: var(--mid-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--yellow);
    background: var(--light-gray);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.input-group input::placeholder {
    color: var(--text-dim);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--mid-gray);
    color: var(--yellow);
    border: 2px solid var(--yellow);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.error-message {
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    border-radius: 4px;
    color: var(--danger);
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--dark-gray);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--mid-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-left h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.settings-btn {
    padding: 0.7rem;
    border-radius: 8px;
    font-family: inherit;
    background: transparent;
    color: var(--text-dim);
    border: 2px solid var(--mid-gray);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn svg {
    width: 20px;
    height: 20px;
}

.settings-btn:hover {
    background: var(--mid-gray);
    color: var(--yellow);
    border-color: var(--yellow);
    transform: rotate(90deg);
}

.home-btn, .logout-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.home-btn {
    background: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
}

.home-btn:hover {
    background: var(--yellow);
    color: var(--black);
}

.logout-btn {
    background: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.logout-btn:hover {
    background: var(--danger);
    color: var(--text-light);
}

.dashboard-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.dashboard-nav {
    width: 250px;
    background: var(--dark-gray);
    border-right: 1px solid var(--mid-gray);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item:hover {
    background: var(--mid-gray);
    color: var(--text-light);
}

.nav-item.active {
    background: var(--mid-gray);
    color: var(--yellow);
    border-left-color: var(--yellow);
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: var(--black);
}

.section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--yellow);
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-btn svg {
    width: 20px;
    height: 20px;
}

.add-btn:hover {
    background: var(--yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.item-card, .note-card {
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--mid-gray);
    transition: all 0.3s ease;
    position: relative;
}

.item-card:hover, .note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
    border-color: var(--yellow);
}

.item-card h3, .note-card h3 {
    color: var(--yellow);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.item-card p, .note-card p {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.item-card .username {
    color: var(--text-light);
    font-weight: 600;
}

.item-card .password {
    font-family: 'Courier New', monospace;
    color: var(--yellow-light);
    background: var(--mid-gray);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
}

.item-card .url {
    color: var(--yellow);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.item-card .url:hover {
    text-decoration: underline;
}

.note-card .content {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0.8rem;
    white-space: pre-wrap;
}

.item-actions, .note-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mid-gray);
}

.action-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--mid-gray);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--mid-gray);
    border-color: var(--yellow);
    color: var(--yellow);
}

.action-btn.delete {
    border-color: var(--danger);
    color: var(--danger);
}

.action-btn.delete:hover {
    background: var(--danger);
    color: var(--text-light);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--dark-gray);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--mid-gray);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--mid-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--yellow);
    font-size: 1.4rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--mid-gray);
    color: var(--text-light);
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input, .modal-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--mid-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-input:focus, .modal-textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background: var(--light-gray);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.modal-input::placeholder, .modal-textarea::placeholder {
    color: var(--text-dim);
}

.modal-textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-textarea.large {
    min-height: 200px;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--mid-gray);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn.cancel {
    background: transparent;
    color: var(--text-dim);
    border: 2px solid var(--mid-gray);
}

.modal-btn.cancel:hover {
    background: var(--mid-gray);
    color: var(--text-light);
}

.modal-btn.save {
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
}

.modal-btn.save:hover {
    background: var(--yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--mid-gray);
    }
    
    .nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--yellow);
    }
    
    .items-grid, .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

.security-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--mid-gray);
}

.security-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'BingBong', sans-serif;
}

.security-tab:hover {
    color: var(--text-light);
}

.security-tab.active {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.security-log-item {
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
    animation: slideInLeft 0.3s ease-out;
}

.security-log-item:hover {
    transform: translateX(5px);
}

.security-log-item.success {
    border-left: 4px solid var(--success);
}

.security-log-item.failure {
    border-left: 4px solid var(--danger);
}

.log-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-log-item.success .log-status {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.security-log-item.failure .log-status {
    background: rgba(255, 68, 68, 0.1);
    color: var(--danger);
}

.log-content {
    flex: 1;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.log-time {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.log-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}

.session-item {
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease-out;
}

.session-item:hover {
    background: var(--mid-gray);
}

.session-item.current {
    border: 2px solid var(--yellow);
}

.session-content {
    flex: 1;
}

.session-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.badge {
    background: var(--yellow);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.session-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}

.blocked-ip-item {
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--danger);
    animation: slideInLeft 0.3s ease-out;
}

.blocked-content {
    flex: 1;
}

.blocked-header {
    margin-bottom: 0.5rem;
}

.blocked-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}

.visitor-card {
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: scaleIn 0.3s ease-out;
}

.visitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.visitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mid-gray);
}

.visitor-time {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.visitor-details p {
    margin: 0.5rem 0;
    color: var(--text-dim);
    font-size: 0.875rem;
}

.visitor-details strong {
    color: var(--text-light);
}

.detail-grid {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: flex;
    padding: 1rem;
    background: var(--dark-gray);
    border-radius: 8px;
}

.detail-row strong {
    min-width: 150px;
    color: var(--yellow);
}

.detail-row span {
    color: var(--text-light);
    word-break: break-word;
}

@media (max-width: 768px) {
    .security-tabs {
        gap: 0.5rem;
    }
    
    .security-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .log-details, .session-details, .blocked-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-row strong {
        min-width: auto;
    }
}

