/* Custom Styles for Xondhan NB App */
* {
    box-sizing: border-box;
}

body {
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    height: 100dvh; /* Dynamic Viewport Height fixes mobile cut-off */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#app {
    width: 100%;
    max-width: 420px;
    height: 100dvh;
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

#auth-page {
    width: 100%;
    max-width: 420px;
    height: 100dvh;
    background: white;
    margin: 0 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Smooth Animations */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-scale-up {
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ensure nav is always visible on mobile */
nav {
    padding-bottom: env(safe-area-inset-bottom, 8px);
    position: relative;
}

.hover-card {
    transition: all 0.2s ease;
}
.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

input[type="radio"]:checked + div {
    border-color: #8b5cf6;
    background-color: #f3e8ff;
    color: #7c3aed;
}

input[type="file"]::file-selector-button {
    background-color: #ede9fe;
    color: #7c3aed;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
input[type="file"]::file-selector-button:hover {
    background-color: #ddd6fe;
}

.text-gradient {
    background: linear-gradient(to right, #7c3aed, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Note Card */
.note-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid #f3f4f6;
}
.note-thumbnail {
    width: 60px;
    height: 75px;
    background: #f3f4f6;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}
.note-details {
    flex: 1;
}
.note-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.note-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.note-price {
    font-weight: 700;
    color: #7c3aed;
    font-size: 1rem;
}
.note-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}
.status-approved { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }

nav div.active {
    color: #7c3aed;
}
nav div.active span {
    color: #7c3aed;
}