:root {
    --primary-color: #0ea5e9;
    --secondary-color: #38bdf8;
    --light-blue: #e0f2fe;
    --dark-blue: #0c4a6e;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 0.25vw 0.375vw -0.0625vw rgba(14, 165, 233, 0.1), 0 0.125vw 0.25vw -0.0625vw rgba(14, 165, 233, 0.06);
    --shadow-lg: 0 0.625vw 0.9375vw -0.1875vw rgba(14, 165, 233, 0.1), 0 0.25vw 0.375vw -0.125vw rgba(14, 165, 233, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

 
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    padding: 1vh;
}

.auth-box {
    background: white;
    border-radius: 1.25vw;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 28.125vw;
    padding: 2.5vw;
    animation: fadeIn 0.6s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 1.875vw;
}

.auth-header .logo {
    font-size: 3vw;
    color: var(--primary-color);
    margin-bottom: 0.9375vw;
}

.auth-header h1 {
    font-size: 1.75vw;
    color: var(--dark-color);
    margin-bottom: 0.5vw;
}

.auth-header p {
    color: #64748b;
    font-size: 1vw;
}

 
.auth-tabs {
    display: flex;
    gap: 0.625vw;
    margin-bottom: 1.875vw;
    background-color: #f1f5f9;
    padding: 0.3125vw;
    border-radius: 0.625vw;
}

.tab-btn {
    flex: 1;
    padding: 0.75vw;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1vw;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5vw;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 0.125vw 0.25vw rgba(0, 0, 0, 0.1);
}

 
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-1.25vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 1.25vw;
}

.form-group label {
    display: block;
    margin-bottom: 0.5vw;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.875vw;
}

.form-group input {
    width: 100%;
    padding: 0.75vw 1vw;
    border: 0.125vw solid var(--border-color);
    border-radius: 0.625vw;
    font-size: 1vw;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1875vw rgba(37, 99, 235, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5625vw;
}

.vwember-me {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 0.875vw;
    cursor: pointer;
}

.vwember-me input {
    width: auto;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875vw;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 0.875vw;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.625vw;
    font-size: 1vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
}

.auth-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-0.125vh);
    box-shadow: var(--shadow);
}

.auth-footer {
    margin-top: 1.875vw;
    text-align: center;
}

.auth-footer p {
    color: #94a3b8;
    margin-bottom: 0.9375vw;
    font-size: 0.875vw;
}

.social-btn {
    width: 100%;
    padding: 0.75vw;
    border: 0.125vw solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 0.625vw;
    font-size: 1vw;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625vw;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn i {
    font-size: 1.25vw;
}

.social-btn.google i {
    color: #ea4335;
}

.auth-links {
    margin-top: 1.25vw;
    text-align: center;
}

.auth-links p {
    margin-bottom: 0.625vw;
    font-size: 0.875vw;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.tab-btn {
    text-decoration: none;
    display: block;
}

 
.header {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    max-width: 87.5vw;
    margin: 0 auto;
    padding: 0 0.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6.5625vh;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-left: -0.5vw;
}

.logo-section i {
    font-size: 2vw;
    color: var(--primary-color);
}

.header-logo {
    width: 2.5vw;
    height: 2.5vw;
    min-width: 32px;
    min-height: 32px;
    object-fit: contain;
}

.logo-section h1 {
    font-size: 1.5vw;
    color: var(--dark-color);
}

.search-section {
    flex: 1;
    max-width: 37.5vw;
    margin: 0 2.5vw;
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.75vw 1.25vw 0.75vw 3.125vw;
    border: 0.125vw solid var(--border-color);
    border-radius: 1.5625vw;
    font-size: 1vw;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1875vw rgba(37, 99, 235, 0.1);
}

.search-bar i {
    position: absolute;
    left: 1.25vw;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1.25vw;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75vw;
    padding: 0.5vw 1vw;
    background: var(--light-blue);
    border-radius: 1.5625vw;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: #e2e8f0;
}

.user-avatar {
    width: 2.25vw;
    height: 2.25vh;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.logout-btn {
    padding: 0.625vw 1.25vw;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 1.5625vw;
    font-size: 0.875vw;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-0.125vh);
}

 
.sidebar {
    position: fixed;
    left: 0;
    top: 6.5625vh;
    bottom: 0;
    width: 16.25vw;
    background: white;
    box-shadow: 0.125vw 0 0.3125vw rgba(0, 0, 0, 0.05);
    padding: 1.875vw 1.25vw;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.3125vw;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.9375vw;
    padding: 0.75vw 1.25vw;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.625vw;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: var(--light-blue);
    color: var(--primary-color);
}

.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-menu i {
    width: 1.25vw;
    text-align: center;
}

 
.main-content {
    margin-left: 16.25vw;
    margin-top: 6.5625vh;
    padding: 1.875vw;
    min-height: calc(100vh - 6.5625vh);
}

.page-title {
    font-size: 2vw;
    color: var(--dark-color);
    margin-bottom: 1.875vw;
}

 
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #64748b;
    font-size: 0.9rem;
}

 
.back-to-categories {
    position: fixed;
    bottom: 2rem;
    left: calc(16.25vw + 2rem);
    z-index: 1000;
}

.back-to-categories button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.back-to-categories button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

 
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.75vw, 1fr));
    gap: 1.875vw;
}

.book-card {
    background: white;
    border-radius: 0.9375vw;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-0.3125vh);
    box-shadow: var(--shadow-lg);
}

.book-cover {
    width: 100%;
    height: 18.75vh;
    object-fit: cover;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5vw;
    position: relative;
}

.book-cover i {
    font-size: 3vw;
    min-font-size: 2rem;
    opacity: 0.9;
}

.book-info {
    padding: 1vh;
}

.book-title {
    font-size: 1.125vw;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5vw;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    color: #64748b;
    font-size: 0.875vw;
    margin-bottom: 0.75vw;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125vw;
    color: #94a3b8;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.3125vw;
}

.book-rating i {
    color: #fbbf24;
}

 
.book-reader {
    background: white;
    border-radius: 0.9375vw;
    box-shadow: var(--shadow);
    padding: 2.5vw;
    max-width: 56.25vw;
    margin: 0 auto;
}

.book-header {
    text-align: center;
    margin-bottom: 2.5vw;
    padding-bottom: 1.875vw;
    border-bottom: 0.125vw solid var(--border-color);
}

.book-header h1 {
    font-size: 2.25vw;
    color: var(--dark-color);
    margin-bottom: 0.9375vw;
}

.book-header .meta {
    font-size: 1.125vw;
    color: #64748b;
}

.book-content {
    font-size: 1.125vw;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2.5vw;
}

.book-content p {
    margin-bottom: 1.25vw;
    text-align: justify;
}

.book-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vh;
    background: #f8fafc;
    border-radius: 0.625vw;
    position: sticky;
    bottom: 1.25vw;
}

.page-info {
    font-size: 1vw;
    color: #64748b;
}

.page-buttons {
    display: flex;
    gap: 0.9375vw;
}

.page-btn {
    padding: 0.625vw 1.25vw;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5vw;
    font-size: 1vw;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.page-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-0.125vh);
}

.page-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

 
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5vw;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.3125vw;
}

 
@media (max-width: 1024px) {
    .main-content {
        margin-left: 15vw;
    }
    
    .sidebar {
        width: 15vw;
    }
    
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .back-to-categories {
        left: calc(15vw + 2rem);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 1001;
        box-shadow: 0.125vw 0 0.625vw rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.25vw 0.9375vw;
    }
    
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card i {
        font-size: 2rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .back-to-categories {
        bottom: 1rem;
        left: 1rem;
    }
    
    .back-to-categories button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .header-content {
        padding: 0 0.9375vw;
    }
    
    .search-section {
        margin: 0 0.9375vw;
        max-width: none;
        flex: 1;
    }
    
    .search-bar input {
        font-size: 1vw;
        padding: 0.625vw 0.9375vw 0.625vw 2.8125vw;
    }
    
    .user-section {
        gap: 0.625vw;
    }
    
    .user-info span {
        display: none;
    }
    
    .logout-btn {
        padding: 0.5vw 0.75vw;
        font-size: 0.75vw;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(10vw, 1fr));
        gap: 1.25vw;
        padding: 0 0.3125vw;
    }
    
    .book-card {
        border-radius: 0.75vw;
    }
    
    .book-cover {
        height: 15vh;
        font-size: 2rem;
    }
    
    .book-cover i {
        font-size: 2.5rem;
    }
    
    .book-info {
        padding: 0.9375vw;
    }
    
    .book-title {
        font-size: 1vw;
    }
    
    .book-reader {
        padding: 1vh;
        margin: 0 0.3125vw;
    }
    
    .book-header h1 {
        font-size: 1.5vw;
    }
    
    .book-content {
        font-size: 1vw;
        line-height: 1.6;
    }
    
    .book-controls {
        flex-direction: column;
        gap: 0.9375vw;
        padding: 0.9375vw;
    }
    
    .page-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .page-btn {
        flex: 1;
        margin: 0 0.3125vw;
    }
}

@media (max-width: 480px) {
    .header {
        height: 5.625vh;
    }
    
    .header-content {
        height: 5.625vh;
        padding: 0 0.3vw;
    }
    
    .logo-section {
        gap: 0.3vw;
        margin-left: -0.3vw;
    }
    
    .logo-section h1 {
        font-size: 1.125vw;
    }
    
    .logo-section i {
        font-size: 1.5vw;
    }
    
    .header-logo {
        width: 24px;
        height: 24px;
        min-width: 20px;
        min-height: 20px;
    }
    
    .search-bar input {
        padding: 0.5vw 0.75vw 0.5vw 2.5vw;
        font-size: 0.875vw;
    }
    
    .search-bar i {
        left: 0.9375vw;
    }
    
    .user-avatar {
        width: 2vw;
        height: 2vh;
        font-size: 0.875vw;
    }
    
    .logout-btn {
        padding: 0.375vw 0.625vw;
        font-size: 0.6875vw;
    }
    
    .sidebar {
        top: 5.625vh;
        padding: 1.25vw 0.9375vw;
    }
    
    .main-content {
        margin-top: 5.625vh;
        padding: 0.9375vw 0.625vw;
    }
    
    .page-title {
        font-size: 1.5vw;
        margin-bottom: 1.25vw;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(8.75vw, 1fr));
        gap: 0.9375vw;
    }
    
    .book-cover {
        height: 12.5vh;
        font-size: 1.8rem;
    }
    
    .book-cover i {
        font-size: 2.2rem;
    }
    
    .book-info {
        padding: 0.75vw;
    }
    
    .book-title {
        font-size: 0.875vw;
        -webkit-line-clamp: 3;
    }
    
    .book-author {
        font-size: 0.75vw;
    }
    
    .book-meta {
        font-size: 0.6875vw;
    }
    
    .book-reader {
        padding: 0.9375vw;
        border-radius: 0.625vw;
    }
    
    .book-header {
        padding: 1.25vw 0.9375vw;
    }
    
    .book-header h1 {
        font-size: 1.25vw;
    }
    
    .book-header .meta {
        font-size: 0.875vw;
    }
    
    .book-content {
        font-size: 0.9375vw;
        line-height: 1.5;
        margin-bottom: 1.25vw;
    }
    
    .book-content p {
        margin-bottom: 0.9375vw;
    }
    
    .book-controls {
        padding: 0.75vw;
        border-radius: 0.5vw;
    }
    
    .page-info {
        font-size: 0.875vw;
    }
    
    .page-btn {
        padding: 0.5vw 1vw;
        font-size: 0.875vw;
        border-radius: 0.375vw;
    }
}

 
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

 
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--dark-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: var(--light-blue);
}

.modal-body {
    padding: 20px;
}

 
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group input[type="checkbox"] {
    margin-left: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.checkbox-group span {
    font-weight: 600;
    color: var(--dark-color);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

 
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.autocomplete-suggestion {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background: var(--light-blue);
}

 
.calendar-wrapper {
    position: relative;
    display: inline-block;
}

.calendar-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-top: 10px;
    min-width: 280px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    color: #2e7dff;
}

.calendar-nav:hover {
    background: #f0f0f0;
}

.calendar-month-year {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    padding: 8px 0;
}

.calendar-day {
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
}

.calendar-day:hover:not(.disabled) {
    background: #e0eaff;
    color: #2e7dff;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.selected {
    background: #2e7dff;
    color: #fff;
}

.calendar-day.today {
    font-weight: bold;
    background: #f0f7ff;
    color: #2e7dff;
}

.calendar-day.today.selected {
    background: #2e7dff;
    color: #fff;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    padding: 8px 0;
}

 
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

 
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-alert-message {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.custom-alert-button {
    background: #2e7dff;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-alert-button:hover {
    background: #1a5fd0;
}

 
.custom-alert.error .custom-alert-message {
    color: #d32f2f;
}

.custom-alert.error .custom-alert-button {
    background: #d32f2f;
}

.custom-alert.error .custom-alert-button:hover {
    background: #b71c1c;
}

.custom-alert.success .custom-alert-message {
    color: #388e3c;
}

.custom-alert.success .custom-alert-button {
    background: #388e3c;
}

.custom-alert.success .custom-alert-button:hover {
    background: #2e7d32;
}

 
.borrower-details {
    padding: 10px 0;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 140px;
}

.info-value {
    color: var(--text-color);
    text-align: right;
    font-weight: 500;
}

 
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.loading-logo {
    margin-bottom: 30px;
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(14, 165, 233, 0.3));
}

.loading-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
    animation: titlePulse 2s ease-in-out infinite;
}

.loading-company {
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 40px 0;
    letter-spacing: 0.5px;
    animation: companyFade 2.5s ease-in-out infinite;
}

@keyframes companyFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.loading-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.loading-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    animation: subtitleBlink 1.5s ease-in-out infinite;
}

@keyframes subtitleBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

 
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.loading-screen.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

 
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .calendar-day {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .custom-alert {
        width: 90%;
        min-width: unset;
        padding: 20px;
    }
    
     
    .loading-content {
        padding: 20px;
        max-width: 300px;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
    
    .loading-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .loading-company {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .progress-text {
        font-size: 18px;
    }
    
    .loading-subtitle {
        font-size: 14px;
    }
}

 
@media (max-width: 768px) {
     
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        padding: 0 16px;
        gap: 12px;
    }
    
    .logo-section .desktop-logo {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .search-section {
        flex: 1;
        margin: 0 12px;
    }
    
    .search-bar {
        max-width: none;
        width: 100%;
    }
    
    .search-bar input {
        font-size: 16px;
        padding: 12px 16px 12px 40px;
    }
    
    .user-section .user-name {
        display: none !important;
    }
    
    .user-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .header-menu {
        right: 8px !important;
        min-width: 140px !important;
    }
    
     
    .sidebar {
        width: 33% !important;
        min-width: 250px !important;
        max-width: 280px !important;
        z-index: 1001 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
    
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        z-index: 1000 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .sidebar-overlay.active {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .sidebar-menu li a {
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .sidebar-menu li a i {
        width: 22px !important;
        font-size: 18px !important;
        margin-right: 14px !important;
    }
    
    .sidebar-menu li a span {
        font-weight: 500 !important;
    }
    
    .sidebar-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        transform: none !important;
    }
    
    .sidebar-menu li a.active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        border-left: 4px solid white !important;
    }
    
     
    .main-content {
        padding-left: 0 !important;
        width: 100% !important;
    }
    
     
    .mobile-menu-btn {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .desktop-logo {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
    
    .user-name {
        display: inline !important;
    }
}

 
@media (min-width: 769px) {
    .main-content {
        margin-left: 25vw;
        width: calc(100% - 25vw);
        min-height: calc(100vh - 6.5625vh);
        padding: 1.875vw;
    }
    
     
    
    .sidebar {
        transform: translateX(0) !important;
        position: fixed;
        top: 6.5625vh;
        left: 0;
        height: calc(100vh - 6.5625vh);
        z-index: 998;
    }
    
    .back-to-categories {
        left: calc(25vw + 2rem);
    }
}

 
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        margin-top: 6.5625vh;
        padding: 1.25vw 0.9375vw;
    }
    
     
}

 
.kitaptemplate-page .header {
    background: white !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kitaptemplate-page .header .header-content {
    color: #334155;
}

.kitaptemplate-page .search-bar input {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.kitaptemplate-page .search-bar input::placeholder {
    color: #94a3b8;
}

.kitaptemplate-page .search-bar i {
    color: #64748b;
}

.kitaptemplate-page .user-avatar {
    background: #0ea5e9;
    color: white;
}

.kitaptemplate-page .user-name {
    color: #334155;
}

.kitaptemplate-page .mobile-menu-btn {
    background: #f1f5f9;
    color: #334155;
}

.kitaptemplate-page .mobile-menu-btn:hover {
    background: #e2e8f0;
}

.kitaptemplate-page .desktop-logo h1 {
    color: #334155;
}