/* Google Fonts Import - Now handled in HTML head */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #111439;
    background: linear-gradient(135deg, #F8F8F9 0%, #E8E8F0 100%);
    min-height: 100vh;
    padding-bottom: 48px; /* Space for fixed footer */
}

.page {
    min-height: 100vh;
}

/* Home Page Styles */
#home-page {
    background: linear-gradient(135deg, #111439 0%, #1e1e3f 15%, #2A2D6B 35%, #4a4d8f 55%, #8b7d6b 75%, #D2691E 100%);
    background-attachment: fixed;
    min-height: 100vh;
}
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.home-header {
    margin-bottom: 60px;
}

.home-header h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #e6f7ff 20%, #bfebff 40%, #99d6ff 60%, #66c2ff 80%, #D2691E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.home-header h1 i {
    margin-right: 20px;
}

.tagline {
    font-size: 1.5rem;
    color: #f8f9fa;
    margin-bottom: 15px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: #e9ecef;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #111439;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2A2D6B 0%, #3A3F7B 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 20, 57, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #5A5A7F 0%, #7A7A9F 100%);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7A7A9F 0%, #9A9ABF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 90, 127, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #111439;
    color: #111439;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 20, 57, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #00c851 0%, #00ff7f 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00ff7f 0%, #39ff14 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9500 0%, #ffb347 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ffd700 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b7a 0%, #ff3838 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Follow Button Dropdown Styles */
#follow-btn.following {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-right: 40px; /* Make room for dropdown arrow */
}

.follow-dropdown {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
}

.follow-dropdown-trigger {
    background: none;
    border: none;
    color: inherit;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.follow-dropdown-trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.follow-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.follow-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.unfollow-btn {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #ff4757;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.unfollow-btn:hover {
    background-color: #f8f9fa;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(17, 20, 57, 0.15);
    border: 1px solid rgba(17, 20, 57, 0.1);
}

/* Wider modal for book forms */
#add-book-modal .modal-content {
    max-width: 900px;
    width: 95%;
    margin: 2% auto; /* Move positioning up */
}

/* Wider modal for registration form */
#register-modal .modal-content {
    max-width: 700px;
    width: 95%;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #111439;
}

/* Style required field asterisks in red */
.modal label .required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(17, 20, 57, 0.15);
    border-radius: 8px;
    font-size: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111439;
    box-shadow: 0 0 0 3px rgba(17, 20, 57, 0.1);
    transform: translateY(-1px);
}

/* Date input styling */
input[type="date"] {
    position: relative;
}

/* Show default date format placeholder in date picker inputs */
input[type="date"]::-webkit-datetime-edit-text {
    color: #999;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    opacity: 1;
}

input[type="date"]::-webkit-datetime-edit-month-field {
    color: #333;
}

input[type="date"]::-webkit-datetime-edit-day-field {
    color: #333;
}

input[type="date"]::-webkit-datetime-edit-year-field {
    color: #333;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: #D2691E;
    cursor: pointer;
}

.switch-auth {
    text-align: center;
    margin-top: 20px;
}

.switch-auth a {
    color: #D2691E;
    text-decoration: none;
}

/* User Page Layout */
.user-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 20, 57, 0.1);
    box-shadow: 0 4px 20px rgba(17, 20, 57, 0.1);
    position: relative;
    z-index: 999998 !important;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

/* When search is hidden, adjust grid layout */
.header-content.no-search {
    grid-template-columns: 1fr auto;
}

.header-content.no-search .header-search {
    display: none;
}

.header-info h1 {
    background: linear-gradient(135deg, #4da6ff 0%, #3399ff 20%, #1a8cff 40%, #0080ff 60%, #0066cc 80%, #D2691E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin: 0;
}

.header-info h1 i {
    margin-right: 15px;
}

.header-info p {
    color: #5A5A7F;
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 0;
}

.header-search {
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid rgba(17, 20, 57, 0.15);
    border-radius: 25px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #111439;
    box-shadow: 0 0 0 3px rgba(17, 20, 57, 0.1);
}

.header-search .search-container .search-icon {
    position: absolute !important;
    right: 15px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 2;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(17, 20, 57, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(17, 20, 57, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(17, 20, 57, 0.08);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover,
.search-result-item.active {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 500;
    color: #111439;
    font-size: 0.9rem;
    line-height: 1.3;
}

.search-result-username {
    color: #666;
    font-size: 0.8rem;
    margin-top: 2px;
}

.search-all-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-top: 1px solid rgba(17, 20, 57, 0.08);
    color: #111439;
    font-weight: 500;
}

.search-all-item:hover,
.search-all-item.active {
    background-color: #f0f8ff;
    color: #2563eb;
}

.search-all-item i {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Search Modal Styles */
.search-modal-content {
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
}

.search-modal-input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-modal-input-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-modal-input-container input:focus {
    outline: none;
    border-color: #111439;
    box-shadow: 0 0 0 3px rgba(17, 20, 57, 0.1);
}

.search-modal-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
}

.search-modal-results {
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.search-modal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-modal-item:hover {
    background-color: #f8f9fa;
}

.search-modal-item:last-child {
    border-bottom: none;
}

.search-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.search-modal-info {
    flex: 1;
}

.search-modal-name {
    font-weight: 600;
    color: #111439;
    font-size: 1rem;
    margin-bottom: 2px;
}

.search-modal-username {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-modal-arrow {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-modal-loading,
.search-modal-empty,
.search-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.search-modal-loading i {
    font-size: 1.5rem;
    color: #111439;
}

.search-modal-empty i,
.search-modal-error i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.search-modal-error {
    color: #dc3545;
}

.search-modal-error i {
    color: #dc3545;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    position: relative;
    z-index: 999998 !important;
}

.public-auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

/* Left Column - Profile */
.left-column {
    padding: 0;
}
.profile-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(17, 20, 57, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    width: 320px;
    min-height: 400px;
}

.profile-image-container {
    margin-bottom: 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%) padding-box, 
                linear-gradient(135deg, #111439 0%, #2A2D6B 100%) border-box;
}

.profile-info h3 {
    color: #111439;
    margin-bottom: 5px;
}

.profile-info p {
    color: #5A5A7F;
    margin-bottom: 5px;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Right Column - Tabs */
.tab-nav {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    border-radius: 12px 12px 0 0;
    display: flex;
    border-bottom: 1px solid rgba(17, 20, 57, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #5A5A7F;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: linear-gradient(135deg, rgba(17, 20, 57, 0.05) 0%, rgba(17, 20, 57, 0.1) 100%);
    color: #111439;
}

.tab-btn.active {
    color: #111439;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #111439 0%, #2A2D6B 100%) 1;
    background: linear-gradient(135deg, rgba(17, 20, 57, 0.05) 0%, rgba(17, 20, 57, 0.1) 100%);
    border-radius: 8px 8px 0 0;
}

/* Settings tab specific styling */
.tab-btn.settings-tab {
    flex: 0 0 auto;
    width: 60px;
    padding: 15px 10px;
    margin-left: auto;
    font-size: 1.2rem;
}

.tab-btn.settings-tab i {
    pointer-events: none;
}

.tab-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    min-height: 700px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(17, 20, 57, 0.1);
    border: 1px solid rgba(17, 20, 57, 0.1);
    border-top: none;
    width: 100%;
    max-width: 1050px;
}

.tab-pane {
    display: none;
    padding: 20px;
    max-width: 1050px;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.tab-pane.active {
    display: block;
}

/* Stopwatch Section */\n.stopwatch-heading {\n    color: #111439;\n    font-size: 1.3rem;\n    margin-bottom: 15px;\n    text-align: center;\n    font-weight: 600;\n}
.stopwatch-section {
    background: linear-gradient(135deg, #F8F8F9 0%, #E8E8F0 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(17, 20, 57, 0.1);
}

/* Start Reading with Flora Section */
.stopwatch-section {
    background: linear-gradient(135deg, 
        rgba(17, 20, 57, 0.12) 0%, 
        rgba(42, 45, 107, 0.10) 20%, 
        rgba(90, 90, 127, 0.08) 40%, 
        rgba(100, 149, 237, 0.06) 60%, 
        rgba(210, 105, 30, 0.08) 80%, 
        rgba(248, 248, 249, 0.06) 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(17, 20, 57, 0.12);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(17, 20, 57, 0.04);
    position: relative;
    overflow: hidden;
}

/* Blurred background for custom images */
.stopwatch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(1px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stopwatch-section.has-custom-background::before {
    opacity: 1;
}

.stopwatch-heading {
    color: #111439;
    margin-bottom: 16px;
    font-weight: 500;
}

.stopwatch-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
}

.stopwatch-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stopwatch-selectors {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.book-selector {
    max-width: 100%;
    overflow: hidden;
}

.book-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.book-selector select {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 2px;
    width: 100%;
    max-width: 280px;
    min-width: 180px;
}

/* Book dropdown with scroll styling */
.book-selector select::-webkit-scrollbar,
#activity-book::-webkit-scrollbar {
    width: 8px;
}

.book-selector select::-webkit-scrollbar-track,
#activity-book::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.book-selector select::-webkit-scrollbar-thumb,
#activity-book::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.book-selector select::-webkit-scrollbar-thumb:hover,
#activity-book::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.sound-selector {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-selector select {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 2px;
    flex: 1;
    max-width: 280px;
    min-width: 180px;
}

.sound-toggle-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background: #fff;
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sound-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #0056b3;
}

.sound-toggle-btn.sound-disabled {
    border-color: #6c757d;
    color: #6c757d;
}

.sound-toggle-btn.sound-disabled:hover {
    background: #f8f9fa;
    border-color: #5a6268;
}

.stopwatch-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.stopwatch-buttons .btn {
    padding: 12px 20px;
    font-size: 1.1rem;
    min-width: 80px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stopwatch-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stopwatch-buttons .btn:hover::before {
    left: 100%;
}

.stopwatch-display {
    font-size: 3rem;
    font-weight: 100;
    font-family: 'Helvetica Neue', 'Arial', 'Segoe UI', sans-serif;
    font-variation-settings: 'wght' 100;
    letter-spacing: 0.12em;
    color: #2c3e50;
    text-align: center;
    flex-shrink: 0;
    min-width: 200px;
    padding: 20px 32px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid #e3e8ef;
    box-shadow: none;
    position: relative;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stopwatch-display:hover {
    border-color: #d1d9e0;
}

/* Stopwatch Alternative Link */
.stopwatch-alternative {
    text-align: left;
    margin-top: 15px;
}

.stopwatch-alternative p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.stopwatch-alternative a {
    color: #111439;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.stopwatch-alternative a:hover {
    color: #D2691E;
    text-decoration: underline;
}

/* Statistics Grid */
.stats-summary {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

/* Different playful gradients for each stat card */
.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-card p {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Info icon for streak calculation */
.streak-info-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #FFFFFF;
    cursor: default;
    transition: all 0.3s ease;
}

.streak-info-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Tooltip */
.streak-tooltip {
    position: absolute;
    bottom: 35px;
    right: -20px;
    background: rgba(17, 20, 57, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transform: translateY(5px);
}

.streak-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(17, 20, 57, 0.95);
}

.streak-info-icon:hover .streak-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Charts Section */
.charts-section {
    margin-bottom: 20px;
    max-width: 990px;
    width: 100%;
    overflow: visible;
}

/* Time Filter Buttons */
.time-filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.time-filter-buttons.centered-filter-buttons {
    justify-content: flex-end;
    margin-bottom: 15px;
    margin-top: 10px;
}

.time-filter-btn {
    background: white;
    color: #111439;
    border: 1px solid #111439;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.time-filter-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-filter-btn.active {
    background: #111439;
    color: white;
}

.time-filter-btn.active:hover {
    background: #2A2D6B;
}

/* Clickable notifications */
.notification-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-clickable:hover {
    background-color: rgba(17, 20, 57, 0.05);
}

/* Increase post modal width */
#post-modal .modal-content {
    max-width: 700px !important;
    width: 90% !important;
}

/* Post modal content styling */
#post-modal .news-feed-post {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
}

#post-modal .post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#post-modal .post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

#post-modal .post-user-info {
    flex: 1;
}

#post-modal .post-username {
    font-weight: 600;
    color: #111439;
    font-size: 1rem;
}

#post-modal .post-fullname {
    color: #666;
    font-size: 0.9rem;
}

#post-modal .post-time {
    color: #888;
    font-size: 0.8rem;
    margin-top: 2px;
}

#post-modal .post-content {
    margin-bottom: 15px;
}

#post-modal .post-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
    color: #333;
    font-size: 1rem;
}

#post-modal .post-activity i {
    color: #111439;
    width: 16px;
    text-align: center;
}

#post-modal .post-notes {
    margin-top: 10px;
    padding: 10px;
    background: rgba(17, 20, 57, 0.05);
    border-radius: 6px;
    font-style: italic;
    color: #555;
    border-left: 3px solid #111439;
}

#post-modal .post-actions {
    display: flex;
    gap: 10px;
}

#post-modal .post-action-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

#post-modal .post-action-btn:hover {
    background: rgba(17, 20, 57, 0.1);
}

#post-modal .like-btn.liked {
    color: #e91e63;
}

#post-modal .like-btn.liked:hover {
    background: rgba(233, 30, 99, 0.1);
}

/* View likes button styling */
.post-action-btn.view-likes-btn,
.news-post-view-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.post-action-btn.view-likes-btn:hover,
.news-post-view-btn:hover {
    background: rgba(17, 20, 57, 0.1);
    color: #111439;
}

/* Likes modal styling */
#likes-modal .modal-content {
    max-width: 500px !important;
    width: 90% !important;
}

.likes-list {
    max-height: 400px;
    overflow-y: auto;
}

.like-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.like-item:last-child {
    border-bottom: none;
}

.like-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.like-user-info {
    flex: 1;
}

.like-user-link {
    color: #111439;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.like-user-link:hover {
    color: #2A2D6B;
    text-decoration: underline;
}

.like-username {
    color: #666;
    font-weight: normal;
}

.no-likes {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* Character counter styling */
.character-counter {
    text-align: right;
    margin-top: 5px;
}

.character-counter span {
    font-size: 0.85rem;
    color: #666;
    transition: color 0.2s ease;
}

.chart {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    border-radius: 12px;
    padding: 12px 20px 20px 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 32px rgba(17, 20, 57, 0.1);
    border: 1px solid rgba(17, 20, 57, 0.1);
    min-height: 350px;
    max-width: 990px;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}


.reading-details-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 60px auto 10px auto;
    border: 1px solid #dee2e6;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    max-width: 600px;
    text-align: center;
}

.reading-details-text .duration {
    color: #dc3545;
    font-weight: 600;
}

.chart > div {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 330px !important;
}

.chart-placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.placeholder-text {
    text-align: center;
    color: #333;
    font-family: 'Inter', sans-serif;
    user-select: none;
}

.placeholder-text i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: #666;
    opacity: 0.8;
}

.placeholder-text p {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.placeholder-text small {
    font-size: 14px;
    color: #666;
    display: block;
    line-height: 1.4;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 990px;
    width: 100%;
    overflow: visible;
}

.chart-row .chart > div {
    max-height: 140px !important;
}

/* Align weekday, monthly, genre, and book type charts to the left */
#weekday-chart,
#monthly-chart,
#genre-chart,
#booktype-chart {
    justify-self: start;
    align-self: start;
}

/* Ensure pie charts have proper overflow handling for tooltips */
#genre-chart,
#booktype-chart {
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

/* Venue Chart */
.venue-chart-container {
    margin-top: 20px;
}

.venue-chart-container h3 {
    margin-bottom: 15px;
    color: #111439;
}

#venue-chart {
    text-align: left;
    overflow: visible;
}

/* Reading Journal */
.reading-journal {
    margin-top: 20px;
}

.reading-journal h3 {
    margin-bottom: 15px;
    color: #111439;
}

/* Reading Logs */
.reading-logs {
    margin-top: 30px;
}

.reading-logs h3 {
    margin-bottom: 15px;
    color: #111439;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-logs h3:hover {
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#logs-toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

#logs-toggle-icon.expanded {
    transform: rotate(90deg);
}

/* Container for reading logs table with scroll */
#reading-logs-table {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(17, 20, 57, 0.1);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    box-shadow: inset 0 2px 4px rgba(17, 20, 57, 0.05);
}

/* Custom scrollbar styling */
#reading-logs-table::-webkit-scrollbar {
    width: 8px;
}

#reading-logs-table::-webkit-scrollbar-track {
    background: rgba(17, 20, 57, 0.05);
    border-radius: 4px;
}

#reading-logs-table::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

#reading-logs-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #95E3D7 0%, #FEC4D0 100%);
}

/* Simple text table for reading logs */
.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 0.9rem;
    margin: 0;
}

.logs-table th,
.logs-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.logs-table th {
    font-weight: 600;
    color: #111439;
    background: linear-gradient(135deg, #F8F8F9 0%, #E8E8F0 100%);
    border-bottom: 2px solid rgba(17, 20, 57, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logs-table tr:hover {
    background: linear-gradient(135deg, rgba(17, 20, 57, 0.03) 0%, rgba(17, 20, 57, 0.08) 100%);
}

.logs-table td:first-child {
    font-weight: 500;
}

.logs-table .delete-activity-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 2px;
}

.logs-table .delete-activity-btn:hover {
    background-color: #c82333;
}

/* Library Tab */
.library-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 990px;
    width: 100%;
}

.library-filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.library-count {
    font-weight: 500;
    color: #666;
}

.library-controls select {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 2px;
}

/* Table Styles */
.data-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(17, 20, 57, 0.1);
    border: 1px solid rgba(17, 20, 57, 0.1);
    table-layout: fixed;
}

/* Table column widths - narrow cover, wider title */
.data-table th:first-child,
.data-table td:first-child {
    width: 80px; /* Cover column - increased from 60px */
    padding: 8px; /* Small padding for cover column */
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: auto; /* Title column - takes remaining space */
    min-width: 200px;
}

/* Reading Journal specific column widths */
.reading-journal .data-table th:first-child,
.reading-journal .data-table td:first-child {
    width: 80px; /* Cover - increased from 60px */
    padding: 8px;
}

.reading-journal .data-table th:nth-child(2),
.reading-journal .data-table td:nth-child(2) {
    width: auto; /* Book - takes extra space */
    min-width: 150px;
}

.reading-journal .data-table th:nth-child(3),
.reading-journal .data-table td:nth-child(3) {
    width: 120px; /* Author - fixed width */
}

.reading-journal .data-table th:nth-child(4),
.reading-journal .data-table td:nth-child(4) {
    width: 100px; /* Started - fixed width */
}

.reading-journal .data-table th:nth-child(5),
.reading-journal .data-table td:nth-child(5) {
    width: 80px; /* Time - reduced width */
}

.reading-journal .data-table th:nth-child(6),
.reading-journal .data-table td:nth-child(6) {
    width: 120px; /* Progress - fixed width */
}

/* Library table specific column widths */
#library-table .data-table th:nth-child(2),
#library-table .data-table td:nth-child(2) {
    width: auto; /* Title - takes most space */
    min-width: 220px;
}

#library-table .data-table th:nth-child(3),
#library-table .data-table td:nth-child(3) {
    width: 140px; /* Author(s) - moderate width */
}

#library-table .data-table th:nth-child(4),
#library-table .data-table td:nth-child(4) {
    width: 120px; /* Genre - increased for better spacing */
}

#library-table .data-table th:nth-child(5),
#library-table .data-table td:nth-child(5) {
    width: 80px; /* Pages - increased slightly */
}

#library-table .data-table th:nth-child(6),
#library-table .data-table td:nth-child(6) {
    width: 190px; /* Actions - enough for two buttons in one line */
}

.data-table th {
    background: linear-gradient(135deg, #F8F8F9 0%, #E8E8F0 100%);
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid rgba(17, 20, 57, 0.1);
    font-weight: 600;
    color: #111439;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(17, 20, 57, 0.1);
    vertical-align: middle;
}

.data-table tr:hover {
    background: linear-gradient(135deg, rgba(17, 20, 57, 0.03) 0%, rgba(17, 20, 57, 0.08) 100%);
}

/* Removed row click hover effect - rows are no longer clickable */

/* Progress Bar */
.progress-bar {
    width: 120px;
    height: 20px;
    background: rgba(17, 20, 57, 0.1);
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #111439;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    z-index: 1;
}

.progress-text {
    position: relative;
    z-index: 2;
    color: #111439;
    text-shadow: 0 0 3px rgba(255,255,255,0.8);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 50%, #5A5A7F 100%);
    color: white;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(17, 20, 57, 0.3);
}

/* Transparent footer for home page */
.footer.home-footer {
    background: transparent;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: none;
    z-index: 100;
    color: white;
}

.footer.home-footer .footer-links a {
    color: white;
}

.footer.home-footer .footer-links a:hover {
    color: #D2691E;
}

.footer.home-footer .footer-right p {
    color: white;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-1px);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coffee-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.coffee-btn:hover {
    background: linear-gradient(135deg, #FF8E53 0%, #FFAD85 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.footer-right p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: none;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #E8F5E8 0%, #D4F0D4 100%);
    color: #2A5F2A;
    border: 1px solid #A5D6A5;
}

.notification.error {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
    border: 1px solid #FF3838;
}

.notification.warning {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
    color: #856404;
    border: 1px solid #FADB74;
}

.notification.info {
    background: linear-gradient(135deg, #D1ECF1 0%, #B8E6F0 100%);
    color: #0C5460;
    border: 1px solid #7DBCD3;
}

/* Settings Page */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 990px;
    width: 100%;
    overflow: hidden;
}

.settings-section {
    padding: 25px;
    border: 1px solid rgba(17, 20, 57, 0.1);
    border-radius: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    box-shadow: 0 4px 16px rgba(17, 20, 57, 0.08);
}

/* Profile Picture Section */
.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.current-profile-picture {
    flex-shrink: 0;
}

.settings-profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%) padding-box, 
                linear-gradient(135deg, #111439 0%, #2A2D6B 100%) border-box;
}

.profile-picture-upload {
    flex: 1;
}

.profile-picture-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-picture-buttons .btn {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.upload-info {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

/* Privacy Settings */
.privacy-option {
    flex: 1;
}

.privacy-option p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Form readonly fields */
input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

input[readonly] + small {
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.settings-section h3 {
    margin-bottom: 20px;
    color: #111439;
}

.danger-zone {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.danger-zone #delete-account-btn {
    margin-top: 20px;
}

/* Admin Dashboard */
.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 990px;
    width: 100%;
    overflow: hidden;
}

.admin-section {
    padding: 25px;
    border: 1px solid rgba(17, 20, 57, 0.1);
    border-radius: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    box-shadow: 0 4px 16px rgba(17, 20, 57, 0.08);
    max-width: 990px;
    width: 100%;
    overflow: hidden;
}

.admin-section h3 {
    margin-bottom: 20px;
    color: #111439;
}

/* Privacy Toggle */
.privacy-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.privacy-toggle:last-child {
    border-bottom: none;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(17, 20, 57, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(17, 20, 57, 0.2);
    transition: all 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.form-actions .btn-danger {
    margin-right: auto;
}

/* Logged-in user info in public profile header */
.logged-in-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.header-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-username {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Username availability and preview */
.username-preview {
    color: #666;
    font-weight: normal;
    font-size: 0.85rem;
}

.username-availability {
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 18px;
}

.username-availability.available {
    color: #28a745;
}

.username-availability.unavailable {
    color: #dc3545;
}

.username-availability.checking {
    color: #6c757d;
}

.username-availability.invalid {
    color: #dc3545;
}

/* Stopwatch Background Selection */
.background-selection {
    margin-top: 15px;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(17, 20, 57, 0.1);
    border-radius: 8px;
    background: rgba(248, 248, 249, 0.5);
}

.background-option {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.background-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.background-option.selected {
    border-color: #00c851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

.background-preview {
    width: 100%;
    height: 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    filter: blur(1px);
}

.background-preview.gradient {
    background: linear-gradient(135deg, #F8F8F9 0%, #E8E8F0 100%);
}

.background-radio {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    accent-color: #00c851;
}

.background-label {
    padding: 8px;
    font-size: 0.8rem;
    text-align: center;
    background: white;
    border-top: 1px solid rgba(17, 20, 57, 0.1);
}

/* Reading Statistics Settings */
.statistics-settings {
    margin-top: 15px;
}

.setting-toggle {
    border: 1px solid rgba(17, 20, 57, 0.1);
    border-radius: 8px;
    padding: 20px;
    background: rgba(248, 248, 249, 0.5);
}

.setting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.setting-content {
    flex: 1;
}

.setting-description {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.toggle-container {
    flex-shrink: 0;
}

.statistics-toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(17, 20, 57, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.statistics-toggle-switch.active {
    background: linear-gradient(135deg, #00c851 0%, #00a844 100%);
}

.statistics-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(17, 20, 57, 0.2);
    transition: all 0.3s ease;
}

.statistics-toggle-switch.active .statistics-toggle-slider {
    transform: translateX(26px);
}

/* Button Sizes */
.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Library buttons alignment */
.view-book-btn,
.edit-book-btn {
    height: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-wishlist {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-currently-reading {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.status-completed {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-abandoned {
    background-color: #fce4ec;
    color: #c2185b;
}

/* Modal Improvements */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Public Theme Settings */
.theme-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.setting-info {
    flex: 1;
}

.theme-selector {
    margin-left: 20px;
}

.theme-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.theme-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 3px solid #0074D9;
}

.theme-preview-text {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.preview-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.preview-btn, .copy-btn {
    padding: 8px 15px !important;
    font-size: 0.85rem;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.preview-btn {
    background: #0074D9;
    color: white;
    border: 1px solid #0074D9;
}

.preview-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.copy-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
}

.copy-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.preview-instructions {
    margin: 10px 0 0 0;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.preview-instructions i {
    margin-top: 2px;
    color: #0074D9;
}

.preview-link {
    color: #0074D9;
    text-decoration: none;
    font-weight: 500;
}

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

/* Book Details Overlay */
.book-details-content {
    padding: 0;
}

.book-details-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.book-cover-large {
    flex-shrink: 0;
}

.book-main-info h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.book-main-info p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.book-details-info {
    margin-bottom: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.info-item {
    padding: 8px 0;
}

.reading-progress, .book-review {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 3px;
}

.reading-progress h4, .book-review h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.book-review p {
    line-height: 1.6;
    color: #555;
}

.book-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Table Improvements */
.data-table img {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    vertical-align: middle;
}

.data-table .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Progress Bar in Table */
.data-table .progress-bar {
    width: 110px;
    height: 18px;
    margin-bottom: 3px;
    font-size: 0.65rem;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pages-info {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
}

/* Logout Button */
#logout-btn {
    padding: 6px 16px;
}

/* About Page Styles */\n.about-page {\n    min-height: 100vh;\n    padding-bottom: 80px;\n}\n\n.about-header {\n    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);\n    color: white;\n    padding: 60px 20px;\n    text-align: center;\n}\n\n.about-header h1 {\n    font-size: 3rem;\n    margin-bottom: 10px;\n    font-weight: 700;\n}\n\n.about-header .subtitle {\n    font-size: 1.2rem;\n    opacity: 0.9;\n}\n\n.about-content {\n    max-width: 1000px;\n    margin: 0 auto;\n    padding: 40px 20px;\n}\n\n.about-section {\n    margin-bottom: 50px;\n}\n\n.about-section h2 {\n    color: #111439;\n    font-size: 2rem;\n    margin-bottom: 20px;\n    font-weight: 600;\n}\n\n.about-section p {\n    font-size: 1.1rem;\n    line-height: 1.7;\n    color: #5A5A7F;\n    margin-bottom: 15px;\n}\n\n.features-list {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n    gap: 30px;\n    margin-top: 30px;\n}\n\n.feature-item {\n    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);\n    padding: 30px;\n    border-radius: 12px;\n    box-shadow: 0 8px 32px rgba(17, 20, 57, 0.1);\n    border: 1px solid rgba(17, 20, 57, 0.1);\n    text-align: center;\n    transition: all 0.3s ease;\n}\n\n.feature-item:hover {\n    transform: translateY(-5px);\n    box-shadow: 0 12px 40px rgba(17, 20, 57, 0.15);\n}\n\n.feature-item i {\n    font-size: 2.5rem;\n    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);\n    -webkit-background-clip: text;\n    -webkit-text-fill-color: transparent;\n    background-clip: text;\n    margin-bottom: 20px;\n}\n\n.feature-item h3 {\n    color: #111439;\n    font-size: 1.3rem;\n    margin-bottom: 15px;\n    font-weight: 600;\n}\n\n.feature-item p {\n    font-size: 1rem;\n    color: #5A5A7F;\n    margin: 0;\n}\n\n.benefits-list {\n    list-style: none;\n    padding: 0;\n}\n\n.benefits-list li {\n    font-size: 1.1rem;\n    color: #5A5A7F;\n    margin-bottom: 15px;\n    padding-left: 30px;\n    position: relative;\n}\n\n.benefits-list li::before {\n    content: '✓';\n    position: absolute;\n    left: 0;\n    color: #A8EDEA;\n    font-weight: bold;\n    font-size: 1.2rem;\n}\n\n.cta-link {\n    color: #111439;\n    text-decoration: none;\n    font-weight: 600;\n    border-bottom: 2px solid #A8EDEA;\n    transition: all 0.3s ease;\n}\n\n.cta-link:hover {\n    color: #2A2D6B;\n    border-bottom-color: #FED6E3;\n}\n\n/* Contact Page Styles */\n.contact-page {\n    min-height: 100vh;\n    padding-bottom: 80px;\n}\n\n.contact-header {\n    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);\n    color: white;\n    padding: 60px 20px;\n    text-align: center;\n}\n\n.contact-header h1 {\n    font-size: 3rem;\n    margin-bottom: 10px;\n    font-weight: 700;\n}\n\n.contact-header .subtitle {\n    font-size: 1.2rem;\n    opacity: 0.9;\n}\n\n.contact-content {\n    max-width: 1200px;\n    margin: 0 auto;\n    padding: 40px 20px;\n}\n\n.contact-container {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 60px;\n    margin-bottom: 60px;\n}\n\n.contact-info h2 {\n    color: #111439;\n    font-size: 2rem;\n    margin-bottom: 20px;\n    font-weight: 600;\n}\n\n.contact-info p {\n    font-size: 1.1rem;\n    line-height: 1.7;\n    color: #5A5A7F;\n    margin-bottom: 30px;\n}\n\n.contact-methods {\n    display: flex;\n    flex-direction: column;\n    gap: 30px;\n}\n\n.contact-method {\n    display: flex;\n    align-items: flex-start;\n    gap: 20px;\n    padding: 20px;\n    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);\n    border-radius: 12px;\n    box-shadow: 0 4px 16px rgba(17, 20, 57, 0.08);\n    border: 1px solid rgba(17, 20, 57, 0.1);\n}\n\n.contact-method i {\n    font-size: 1.5rem;\n    color: #A8EDEA;\n    margin-top: 5px;\n}\n\n.contact-method h3 {\n    color: #111439;\n    font-size: 1.2rem;\n    margin-bottom: 8px;\n    font-weight: 600;\n}\n\n.contact-method p {\n    color: #5A5A7F;\n    margin-bottom: 8px;\n    font-size: 1rem;\n}\n\n.contact-link {\n    color: #111439;\n    text-decoration: none;\n    font-weight: 600;\n    border-bottom: 1px solid #A8EDEA;\n    transition: all 0.3s ease;\n}\n\n.contact-link:hover {\n    color: #2A2D6B;\n    border-bottom-color: #FED6E3;\n}\n\n.contact-form-container {\n    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);\n    padding: 40px;\n    border-radius: 12px;\n    box-shadow: 0 8px 32px rgba(17, 20, 57, 0.1);\n    border: 1px solid rgba(17, 20, 57, 0.1);\n}\n\n.contact-form h2 {\n    color: #111439;\n    font-size: 1.8rem;\n    margin-bottom: 30px;\n    font-weight: 600;\n}\n\n.contact-submit {\n    width: 100%;\n    margin-top: 10px;\n}\n\n.faq-section {\n    margin-top: 60px;\n}\n\n.faq-section h2 {\n    color: #111439;\n    font-size: 2rem;\n    margin-bottom: 30px;\n    font-weight: 600;\n    text-align: center;\n}\n\n.faq-grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n    gap: 30px;\n}\n\n.faq-item {\n    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F9 100%);\n    padding: 25px;\n    border-radius: 12px;\n    box-shadow: 0 4px 16px rgba(17, 20, 57, 0.08);\n    border: 1px solid rgba(17, 20, 57, 0.1);\n}\n\n.faq-item h3 {\n    color: #111439;\n    font-size: 1.2rem;\n    margin-bottom: 15px;\n    font-weight: 600;\n}\n\n.faq-item p {\n    color: #5A5A7F;\n    line-height: 1.6;\n    margin: 0;\n}\n\n/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-info {
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .tab-btn.settings-tab {
        flex: 0 0 auto;
        width: 50px;
        min-width: 50px;
        padding: 15px 5px;
    }
    
    .stopwatch-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .stopwatch-selectors {
        min-width: auto;
    }
    
    .stopwatch-buttons {
        justify-content: center;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    #add-book-modal .modal-content {
        margin: 5% auto; /* Move book modal up on mobile too */
    }
    
    .home-header h1 {
        font-size: 2.5rem;
    }
    
    body {
        padding-bottom: 80px; /* More space for footer on mobile */
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 8px;
    }
    
    /* About and Contact page responsive */
    .about-header h1,
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Username Link */
.profile-username-link {
    cursor: pointer;
    color: #D2691E;
    transition: color 0.3s ease;
}

.profile-username-link:hover {
    color: #B8860B;
    text-decoration: underline;
}

/* Profile Link Modal Styles */
.profile-link-container {
    text-align: center;
}

.link-input-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

#profile-link-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    color: #333;
}

#copy-profile-link {
    white-space: nowrap;
    padding: 12px 16px;
}

.link-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
}

/* CAPTCHA Styles */
.captcha-group {
    margin-bottom: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.captcha-refresh {
    background: #D2691E;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.captcha-refresh:hover {
    background: #B8860B;
}

.captcha-refresh:active {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

#register-captcha {
    width: 140px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Admin Approval Modal Styles */
.verification-container {
    text-align: center;
    padding: 20px 0;
}

.verification-email {
    font-weight: 600;
    color: #D2691E;
    font-size: 1.1rem;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0;
    border: 2px solid #e9ecef;
}

#verification-code {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 15px;
    width: 200px;
    margin: 0 auto;
}

.verification-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.verification-help p {
    margin: 10px 0;
    color: #666;
}

.verification-note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

#resend-verification {
    margin: 10px 0;
}

/* Admin Approval Modal Specific Styles */
.approval-container {
    text-align: center;
    padding: 20px 0;
}

.approval-icon {
    font-size: 3rem;
    color: #D2691E;
    margin-bottom: 20px;
}

.approval-email {
    font-weight: 600;
    color: #D2691E;
    font-size: 1.2rem;
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: inline-block;
}

.approval-actions {
    margin-top: 30px;
}

.approval-actions .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

.approval-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.approval-note p {
    margin: 10px 0;
    color: #666;
}

#resend-verification:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Announcement Banner Styles */
.announcement-banner {
    background: linear-gradient(135deg, #D2691E 0%, #E67E22 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

#announcement-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

#announcement-text a {
    color: #fff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

#announcement-text a:hover {
    color: #f8f9fa !important;
    text-decoration: underline !important;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin Announcement Controls */
.announcement-form {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.announcement-form h4 {
    color: #111439;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.announcement-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 15px;
}

.announcement-form textarea:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.announcement-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-preview {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #D2691E;
}

.announcement-preview h5 {
    color: #111439;
    margin-bottom: 10px;
    font-size: 1rem;
}

.announcement-preview-content {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.announcement-status {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #2d5a2d;
}

.announcement-status.no-announcements {
    background: #f0f0f0;
    border-color: #ccc;
    color: #666;
}

/* Active Users Section */
.active-users-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.active-users-controls label {
    font-weight: 500;
    color: #111439;
    margin: 0;
}

.active-users-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    min-width: 100px;
}

.active-users-controls select:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 0 2px rgba(210, 105, 30, 0.1);
}

.active-users-summary {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #111439 0%, #2A2D6B 100%);
    color: white;
    border-radius: 6px;
    font-weight: 500;
}

.active-users-table-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.active-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.active-users-table th {
    background: #f8f9fa;
    color: #111439;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.active-users-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.active-users-table tbody tr:hover {
    background: #f8f9fa;
}

.active-users-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.active-users-table tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

.username-link {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.username-link:hover {
    color: #b8571a;
    text-decoration: underline;
}

.activity-stat {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e8;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #2d5a2d;
}

.activity-stat.high {
    background: #d4edda;
    color: #155724;
}

.activity-stat.medium {
    background: #fff3cd;
    color: #856404;
}

.activity-stat.low {
    background: #f8d7da;
    color: #721c24;
}

.last-activity {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.no-active-users {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.no-active-users i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Demographics Charts */
.demographics-charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.demographics-chart {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demographics-chart h4 {
    color: #111439;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 10px;
}

.demographics-chart .chart-container {
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .demographics-charts-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .demographics-chart .chart-container {
        height: 250px;
    }
}

/* Targeted Announcements Section */
.targeted-announcement-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.targeted-announcement-form h4 {
    color: #111439;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.username-autocomplete-container {
    position: relative;
    width: 100%;
}

.username-autocomplete-container input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.username-autocomplete-container input:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.username-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.username-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s;
}

.username-suggestion:hover,
.username-suggestion.selected {
    background: #f8f9fa;
}

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

.username-suggestion .username {
    font-weight: 500;
    color: #D2691E;
}

.username-suggestion .fullname {
    font-size: 0.8rem;
    color: #666;
    margin-left: 8px;
}

.targeted-announcements-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.targeted-announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 10px;
}

.targeted-announcements-list h4 {
    color: #111439;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.targeted-announcements-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.targeted-announcements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.targeted-announcements-table th {
    background: #f8f9fa;
    color: #111439;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.targeted-announcements-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.targeted-announcements-table tbody tr:hover {
    background: #f8f9fa;
}

.targeted-announcements-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.targeted-announcements-table tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

.targeted-announcement-content {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.targeted-announcement-content.expanded {
    white-space: normal;
    max-width: none;
}

.targeted-announcement-toggle {
    color: #D2691E;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    margin-left: 5px;
}

.targeted-announcement-meta {
    font-size: 0.8rem;
    color: #666;
}

.remove-targeted-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-targeted-btn:hover {
    background: #c82333;
}

.no-targeted-announcements {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-style: italic;
}

.no-targeted-announcements i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.selected-user-display {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    color: #2d5a2d;
    font-size: 0.9rem;
}

.selected-user-display .remove-selected {
    color: #dc3545;
    cursor: pointer;
    margin-left: 8px;
    text-decoration: none;
}

.selected-user-display .remove-selected:hover {
    color: #c82333;
}

/* User Management Section */
.user-search-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.user-search-section h4 {
    color: #111439;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 10px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-input-group input:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.search-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.search-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-filters input[type="radio"] {
    margin: 0;
}

.user-search-results {
    min-height: 200px;
}

.user-search-table-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-search-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.user-search-table th {
    background: #f8f9fa;
    color: #111439;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-search-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.user-search-table tbody tr:hover {
    background: #f8f9fa;
}

.user-search-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.user-search-table tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

.user-info-cell {
    max-width: 200px;
}

.user-info-cell .username {
    font-weight: 500;
    color: #D2691E;
}

.user-info-cell .fullname {
    font-size: 0.8rem;
    color: #666;
}

.user-info-cell .email {
    font-size: 0.8rem;
    color: #888;
}

.user-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-status.verified {
    background: #d4edda;
    color: #155724;
}

.user-status.unverified {
    background: #fff3cd;
    color: #856404;
}

.user-stats {
    font-size: 0.8rem;
    color: #666;
}

.delete-user-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delete-user-btn:hover {
    background: #c82333;
}

.delete-user-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.no-search-results,
.no-users-found {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.no-search-results i,
.no-users-found i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* User Deletion Modal */
.user-deletion-content {
    max-width: 600px;
    margin: 5% auto;
}

.user-deletion-content h2 {
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.deletion-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.deletion-warning p {
    margin: 0 0 10px 0;
    color: #721c24;
}

.deletion-warning ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #721c24;
}

.user-to-delete {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.user-to-delete h3 {
    margin: 0 0 10px 0;
    color: #111439;
    font-size: 1rem;
}

.user-deletion-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-deletion-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-deletion-details .username {
    font-weight: 600;
    color: #D2691E;
    font-size: 1.1rem;
}

.user-deletion-details .fullname {
    color: #666;
    margin: 2px 0;
}

.user-deletion-details .email {
    color: #888;
    font-size: 0.9rem;
}

.deletion-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#delete-confirmation-text {
    font-family: monospace;
    font-weight: bold;
}

#confirm-deletion:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-deletion-content {
        margin: 2% auto;
        max-width: 95%;
    }
    
    .deletion-buttons {
        flex-direction: column;
    }
}

/* Action buttons in user management */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 32px;
}

.user-search-table td.action-buttons {
    height: auto;
    min-height: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.verify-user-btn {
    white-space: nowrap;
}

.delete-user-btn {
    white-space: nowrap;
}

/* User verification status */
.user-status.verified {
    color: #28a745;
    font-weight: 600;
}

.user-status.unverified {
    color: #dc3545;
    font-weight: 600;
}

/* Timeline charts styling */
.timeline-charts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-chart {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.timeline-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-chart h4 {
    margin: 0;
    color: #111439;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.time-period-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-period-selector label {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.period-dropdown {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #111439;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.period-dropdown:hover {
    border-color: #4285F4;
}

.period-dropdown:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.timeline-chart .chart-container {
    height: 300px;
}

@media (max-width: 768px) {
    .timeline-chart .chart-container {
        height: 250px;
    }
    
    .timeline-chart .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .time-period-selector {
        align-self: flex-end;
    }
}

/* Activity Leaderboard Styling */
.leaderboard-controls {
    margin-bottom: 20px;
}

.leaderboard-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.filter-dropdown {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #111439;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-dropdown:hover {
    border-color: #4285F4;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.leaderboard-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.activity-leaderboard-table {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.activity-leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.activity-leaderboard-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #111439;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.activity-leaderboard-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.activity-leaderboard-table tr:hover {
    background-color: #f8f9fa;
}

.leaderboard-rank {
    font-weight: 600;
    color: #D2691E;
    text-align: center;
    width: 60px;
}

.leaderboard-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.leaderboard-user-details .name {
    font-weight: 600;
    color: #111439;
    margin-bottom: 2px;
}

.leaderboard-user-details .username {
    color: #D2691E;
    font-size: 0.85rem;
}

.leaderboard-user-details .email {
    color: #666;
    font-size: 0.8rem;
    margin-top: 2px;
}

.leaderboard-activity-count {
    font-weight: 600;
    color: #28a745;
    text-align: center;
}

.leaderboard-no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .leaderboard-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .activity-leaderboard-table {
        max-height: 400px;
    }
    
    .leaderboard-user-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .activity-leaderboard-table th,
    .activity-leaderboard-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* Library Actions Column Styles */
.actions-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 140px;
}

.status-dropdown {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 160px;
}

.status-dropdown:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.status-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 45, 107, 0.2);
}

/* Status-specific colors for dropdown */
.status-dropdown[data-current-status="Wishlist"] {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.status-dropdown[data-current-status="Currently-Reading"] {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    color: #e65100;
}

.status-dropdown[data-current-status="Completed"] {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.status-dropdown[data-current-status="Abandoned"] {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: #c2185b;
}

.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.action-buttons .btn-small {
    flex: 1;
    min-width: auto;
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Responsive adjustments for actions column */
@media (max-width: 768px) {
    .actions-column {
        min-width: 120px;
    }
    
    .action-buttons .btn-small {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .status-dropdown {
        font-size: 0.8rem;
        padding: 5px 6px;
    }
}

/* Follow System Styles */

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
    display: inline-block;
    z-index: 2147483647 !important;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.notification-dropdown-content {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white;
    min-width: 320px;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e8ed;
    z-index: 2147483647 !important;
    display: none;
    max-height: 400px;
    overflow: hidden;
}

.notification-dropdown-content.show {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e8ed;
    background: #f8f9fa;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f0f8ff;
    border-left: 3px solid #1da1f2;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.notification-message {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-time {
    color: #999;
    font-size: 0.8rem;
    margin-top: 4px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.notification-actions .btn i {
    margin-right: 4px;
}

.notification-status {
    margin-top: 8px;
}

.status-text {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-text i {
    margin-right: 6px;
    color: #28a745;
}

.no-notifications {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* Followers/Following Card */
.followers-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.followers-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
    text-align: center;
}

.connections-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.connection-stat {
    text-align: center;
}

.connection-count {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.connection-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connections-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.followers-section h4,
.following-section h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 8px;
}

.connections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.connection-item:hover {
    background: #f0f0f0;
}

.connection-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.connection-info {
    flex: 1;
}

.connection-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.connection-username {
    color: #666;
    font-size: 0.8rem;
}

/* Follow Button States */
#follow-btn.following {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

#follow-btn.following:hover {
    background: transparent !important;
    border-color: #111439 !important;
    color: #111439 !important;
    transform: none !important;
    box-shadow: none !important;
}

#follow-btn.following:hover i {
    margin-right: 8px;
}

/* Removed pseudo-element content rules - now using dropdown structure */

#follow-btn.pending {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
    cursor: not-allowed;
    opacity: 0.8;
}

#follow-btn.pending:hover {
    background: #ffc107;
    border-color: #ffc107;
    transform: none;
}

#follow-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#follow-btn:disabled:hover {
    transform: none;
}

/* Friends Tab */
.friends-tab-content {
    padding: 20px;
}

.friends-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
    text-align: center;
}

/* Friends Search Bar Styles */
.friends-search-container {
    margin-bottom: 25px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 400px;
}

.search-input-wrapper:focus-within {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 2;
}

#friends-search {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    outline: none;
}

#friends-search::placeholder {
    color: #6c757d;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.clear-search-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    max-width: 400px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.search-result-username {
    font-size: 0.85rem;
    color: #666;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.friends-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

/* Friends Sub-navigation */
.friends-sub-nav {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 30px;
    gap: 6px;
}

.friends-sub-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.friends-sub-btn:hover {
    color: #333;
    background: rgba(255, 255, 255, 0.5);
}

.friends-sub-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.friends-sub-btn i {
    font-size: 1.1rem;
}

.sub-count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 24px;
    text-align: center;
    margin-left: 8px;
}

.friends-sub-btn.active .sub-count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Friends Sub-content */
.friends-sub-content {
    position: relative;
}

.friends-sub-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.friends-sub-pane.active {
    display: block;
}

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

.count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    min-width: 60px;
    text-align: center;
}

.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.connection-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.connection-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.connection-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.connection-card-info {
    flex: 1;
}

.connection-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.connection-card-username {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.connection-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.connection-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
}

.connection-stat-item {
    text-align: center;
}

.connection-stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.connection-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-connections {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-connections i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-connections h3 {
    margin-bottom: 10px;
    color: #888;
}

.no-connections p {
    font-style: italic;
}

/* Responsive Design for Follow System */
@media (max-width: 768px) {
    .notification-dropdown-content {
        min-width: 280px;
        right: -20px;
    }
    
    .connections-lists {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .connections-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .connection-stat {
        padding: 10px;
        background: white;
        border-radius: 6px;
    }
    
    .connections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .followers-header,
    .following-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .connection-card-stats {
        margin-top: 10px;
    }
    
    .connection-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .friends-sub-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .friends-sub-btn {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .sub-count-badge {
        margin-left: auto;
    }
}

/* News Feed Styles */
.news-feed-container {
    /* Remove container box - posts display directly */
    max-width: 800px;
    margin: 0 auto;
}

.news-feed-header {
    text-align: center;
    margin-bottom: 30px;
}

.news-feed-header h2 {
    color: #111439;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-feed-header p {
    color: #5A5A7F;
    font-size: 1rem;
}

.news-feed-posts {
    /* Posts display directly without scrollable container */
}

.news-post {
    background: #FFFFFF;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(17, 20, 57, 0.05);
}

.news-post:hover {
    border-color: #D2691E;
    box-shadow: 0 4px 16px rgba(17, 20, 57, 0.1);
}

.news-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.news-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #f0f0f0;
}

.news-post-user-info {
    flex: 1;
}

.news-post-name {
    font-weight: 600;
    color: #111439;
    font-size: 1rem;
    margin-bottom: 2px;
}

.news-post-name-link {
    color: #111439;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-post-name-link:hover {
    color: #2A2D6B;
    text-decoration: underline;
}


.news-post-time {
    color: #8A8A8A;
    font-size: 0.8rem;
}

.news-post-content {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.news-post-content i {
    color: #D2691E;
    margin-right: 8px;
    font-size: 1rem;
}

.news-post-content span {
    color: #111439;
    font-size: 1rem;
    line-height: 1.5;
}

.news-post-notes {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
    color: #2c3e50;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
}

.news-post-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-post-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #8A8A8A;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.news-post-like-btn:hover {
    background: #f0f0f0;
    color: #D2691E;
}

.news-post-like-btn.liked {
    color: #e74c3c;
}

.news-post-like-btn.liked:hover {
    color: #c0392b;
}

.news-post-like-btn i {
    font-size: 0.9rem;
}

.like-count {
    font-weight: 500;
}

.no-news-feed {
    text-align: center;
    padding: 60px 20px;
    color: #5A5A7F;
}

.no-news-feed i {
    font-size: 4rem;
    color: #D2691E;
    margin-bottom: 20px;
}

.no-news-feed h3 {
    font-size: 1.5rem;
    color: #111439;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-news-feed p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.news-feed-loader {
    text-align: center;
    padding: 20px;
    color: #5A5A7F;
}

.news-feed-loader i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* News Feed Settings Toggle */
.news-feed-settings {
    margin-bottom: 25px;
}

.news-feed-settings .setting-toggle {
    background: #FFFFFF;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
}

.news-feed-settings .setting-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-feed-settings .setting-content {
    flex: 1;
    margin-right: 20px;
}

.news-feed-settings .setting-content strong {
    font-size: 1.1rem;
    color: #111439;
    font-weight: 600;
}

.news-feed-settings .setting-description {
    color: #5A5A7F;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

/* Responsive Design for News Feed */
@media (max-width: 768px) {
    .news-feed-container {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .news-feed-header h2 {
        font-size: 1.5rem;
    }
    
    .news-post {
        padding: 15px;
        border-radius: 8px;
    }
    
    .news-post-avatar {
        width: 40px;
        height: 40px;
    }
    
    
    .news-post-notes {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    
    .news-post-content i {
        font-size: 1rem;
    }
    
    .news-post-name {
        font-size: 0.9rem;
    }
    
    .news-post-name-link {
        font-size: 0.9rem;
    }
    
    
    .no-news-feed {
        padding: 40px 15px;
    }
    
    .no-news-feed i {
        font-size: 3rem;
    }
    
    .no-news-feed h3 {
        font-size: 1.2rem;
    }
}