/**
 * Instagram-Style Story Viewer
 * Professional responsive design for story viewing experience
 */

/* Main Story Viewer Modal */
.story-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-viewer-modal.show {
    display: flex;
}

/* Navigation Controls */
.story-nav-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10002;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.story-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.story-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.story-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.story-nav-btn i {
    font-size: 1.2rem;
}

/* Close Button */
.story-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10003;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.story-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Progress Bar */
.story-progress-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10003;
}

.story-progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4100f5, #9bf0e1);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.story-counter {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Main Story Content */
.story-viewer-content {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Media Container */
.story-media-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.story-media-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-media-display video,
.story-media-display img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.story-media-display video {
    background: #000;
}

/* Audio Story Display */
.story-audio-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.story-audio-display .audio-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.story-audio-display .audio-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.story-audio-display .audio-artist {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.story-audio-display audio {
    width: 80%;
    margin-top: 20px;
}

/* Media Controls */
.story-media-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-media-container:hover .story-media-controls {
    opacity: 1;
}

.media-control-btn {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.media-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Interactive Panel */
.story-interactive-panel {
    width: 450px;
    max-width: 450px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 0;
    flex-shrink: 0;
}

/* Story Header */
.story-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.story-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4100f5;
}

.story-user-details {
    flex: 1;
}

.story-username {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.story-date {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.story-actions-top {
    display: flex;
    gap: 10px;
}

.story-action-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Story Content Info */
.story-content-info {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background-color: #484646;
}

/* Story Options Dropdown */
.story-options-dropdown {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.story-options-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    z-index: 101;
    position: relative;
    pointer-events: auto !important;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.story-options-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: scale(1.1);
}

.story-options-btn:active {
    transform: scale(0.95);
}

.story-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 102;
}

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

.story-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.story-option-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.story-option-item i {
    width: 16px;
    font-size: 0.85rem;
    text-align: center;
}

.story-option-item.delete-option:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.story-option-item.delete-option:hover i {
    color: #ef4444;
}

.story-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
}

.story-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-tag {
    background: rgba(65, 0, 245, 0.2);
    color: #9bf0e1;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(155, 240, 225, 0.3);
}

/* Story Stats */
.story-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 15px 20px;
    background: transparent;
    border: none;
}

.story-stats .stat-item {
    text-align: center;
    color: white;
}

.story-stats .stat-item i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

/* Colored icons for different stats */
.story-stats .stat-item:nth-child(1) i {
    color: #10b981; /* Views - Green */
}

.story-stats .stat-item:nth-child(2) i {
    color: #ef4444; /* Likes - Red */
}


.story-stats .stat-item:nth-child(3) i {
    color: #3b82f6; /* Comments - Blue */
}

.story-stats .stat-item:nth-child(4) i {
    color: #f59e0b; /* Donations - Gold */
}

.story-stats .stat-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.story-stats .stat-item small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Donations Section */
.story-donations-section {
    background-color: #024100;
}

/* Comments Section */
.story-comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background-color: #000f41;
}

/* Interactive Actions */
.story-interaction-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.story-interaction-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
}

.story-interaction-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.story-interaction-btn.liked {
    background: rgba(255, 48, 64, 0.2);
    border-color: rgba(255, 48, 64, 0.5);
    color: #ff3040;
}

.story-interaction-btn i {
    font-size: 1.2rem;
}

.story-interaction-btn span {
    display: none;
}

/* Recent Donors */
.recent-donors {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.recent-donor-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.recent-donor-avatar:hover {
    transform: scale(1.2);
    border-color: #10b981;
}

/* Donations Summary Styling */
.donations-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.donations-counter {
    display: flex;
    align-items: center;
    gap: 5px;
}

.donations-icon-text i {
    color: #10b981;
    font-size: 1rem;
}

.donations-amount {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}

.donations-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.donations-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-align: center;
}

.comments-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-header h4 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.comments-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.add-comment-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

#story-comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 10px 15px !important;
    color: white !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 10;
    user-select: text !important;
    pointer-events: auto !important;
    -webkit-text-fill-color: white !important;
    -webkit-opacity: 1 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    resize: none !important;
    overflow: hidden !important;
    min-height: 40px !important;
    max-height: 100px !important;
    /* Anti-autofill styles */
    -webkit-autofill-strong-password-viewable: false !important;
    -webkit-autofill: false !important;
}

/* Anti-autofill textarea specific styles */
#story-comment-input::-webkit-autofill,
#story-comment-input::-webkit-autofill:hover,
#story-comment-input::-webkit-autofill:focus,
#story-comment-input::-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: white !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    color: white !important;
}

/* Hide fake autofill inputs completely */
input[name="fake_username"],
input[name="fake_password"] {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -1 !important;
    visibility: hidden !important;
    display: none !important;
}

/* Prevent multiple comment inputs appearing - improved logic */
.story-viewer-modal .add-comment-section:not(:first-of-type) {
    display: none !important;
}

/* Ensure single comment input per story */
.story-comments-section .add-comment-section ~ .add-comment-section {
    display: none !important;
}

/* Hide duplicate comment inputs in any container */
.add-comment-section[data-story-id] + .add-comment-section[data-story-id] {
    display: none !important;
}

/* Disabled state for comment input during submission */
#story-comment-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: white;
}

#story-comment-input:focus {
    border-color: #4100f5;
    background: rgba(255, 255, 255, 0.08);
}

#story-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.comment-submit-btn {
    width: 35px;
    height: 35px;
    background: #4100f5;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.comment-submit-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    max-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.comment-item {
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    transition: background 0.2s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comment-item .comment-user-avatar {
    width: 28px;
    height: 28px;
}

.comment-content {
    flex: 1;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-username {
    font-weight: 600;
    color: #9bf0e1;
    font-size: 0.85rem;
}

.comment-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.comment-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Login prompt for guests */
.add-comment-section.login-required {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.login-prompt p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.login-prompt a {
    color: #4100f5;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    color: #3600d9;
    text-decoration: underline;
}

/* Ensure comment section is always visible */
.story-comments-section {
    min-height: 200px;
}

/* Debug: make comment sections more visible during testing */
#authenticated-comment-section,
#guest-comment-section {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 10px 0;
}

/* Remove debug border in production */
.story-comments-section.production #authenticated-comment-section,
.story-comments-section.production #guest-comment-section {
    border: none;
    margin: 0;
}


/* Accessibility improvements for all devices */
.story-action-btn:focus,
.story-interaction-btn:focus,
.story-nav-btn:focus,
.story-close-btn:focus,
.comment-submit-btn:focus {
    outline: 2px solid #4100f5;
    outline-offset: 2px;
}

/* Skip to content for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .story-action-btn,
    .story-interaction-btn,
    .story-nav-btn {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .story-viewer-modal {
        background: rgba(0, 0, 0, 0.98);
    }
}

/* Responsive touch targets for mobile */
@media (max-width: 767px) {
    .story-comments-section {
        min-height: 120px;
    }
    
    /* Improve touch targets on mobile - minimum 44px for accessibility */
    .story-action-btn,
    .story-interaction-btn,
    .comment-submit-btn,
    .story-nav-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Better text scaling and readability */
    .story-title {
        line-height: 1.4;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .story-description {
        line-height: 1.5;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Improve color contrast on mobile */
    .story-username {
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    .story-date {
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
}


/* Share Modal */
.story-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.story-share-modal.show {
    display: flex;
}

.share-modal-content {
    background: #2d3748;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    /* Custom scrollbar for share modal */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.share-modal-content::-webkit-scrollbar {
    width: 6px;
}

.share-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.share-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.share-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.share-close-btn:hover {
    color: white;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.share-option i {
    font-size: 1.2rem;
}

.copy-link-section {
    display: flex;
    gap: 10px;
}

.share-url-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    color: white;
    font-size: 0.9rem;
}

.copy-link-btn {
    background: #4100f5;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-link-btn:hover {
    background: #3600d9;
}

/* Donation Modal */
.story-donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.story-donation-modal.show {
    display: flex;
}

.donation-modal-content {
    background: #2d3748;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    /* Custom scrollbar for donation modal */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.donation-modal-content::-webkit-scrollbar {
    width: 6px;
}

.donation-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.donation-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.donation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.donation-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.donation-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.donation-close-btn:hover {
    color: white;
}

.donation-form h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.amount-option {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.amount-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.amount-option.selected {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

#custom-amount-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px 18px;
    color: white;
    font-size: 15px;
    margin-top: 12px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    transition: all 0.3s ease;
}

#custom-amount-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#custom-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.donation-message {
    margin: 25px 0;
}

.donation-message h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

#donation-message-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px 18px;
    color: white;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    min-height: 90px;
    max-height: 150px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
    word-spacing: normal;
    letter-spacing: 0.5px;
}

#donation-message-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#donation-message-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    line-height: 1.5;
}

.donation-options {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #4100f5;
    border-color: #4100f5;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: -1px;
    left: 2px;
}

.payment-methods {
    margin: 20px 0;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-option:hover,
.payment-option.active {
    background: rgba(65, 0, 245, 0.2);
    border-color: #4100f5;
}

.donation-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.donation-submit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .story-interactive-panel {
        width: 380px;
        max-width: 380px;
    }
    
    .story-nav-controls {
        padding: 0 15px;
    }
    
    .story-nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 1024px) {
    .story-interactive-panel {
        width: 350px;
        max-width: 350px;
    }
    
    .story-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 12px 15px;
    }
    
    .story-action-buttons {
        gap: 15px;
    }
    
    .story-interaction-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .comments-list {
        max-height: 150px;
    }
    
    .comments-header {
        padding: 12px 15px;
    }
    
    .add-comment-section {
        padding: 10px 15px;
    }
}

/* Tablet Landscape (iPad Pro) */
@media (max-width: 1024px) and (orientation: landscape) {
    .story-viewer-content {
        max-width: 100%;
    }
    
    .story-interactive-panel {
        width: 300px;
        max-width: 300px;
    }
    
    .story-media-display video,
    .story-media-display img {
        max-width: 85%;
        max-height: 85%;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .story-viewer-content {
        flex-direction: column;
    }
    
    .story-media-container {
        min-height: 60vh;
        max-height: 60vh;
    }
    
    .story-interactive-panel {
        height: 40vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .story-viewer-content {
        flex-direction: column;
        height: 100vh;
        justify-content: center;
        align-items: center;
    }
    
    .story-media-container {
        flex: 1;
        height: auto;
        min-height: 55vh;
        max-height: 55vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .story-media-display video,
    .story-media-display img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .story-interactive-panel {
        width: 100%;
        max-width: 100%;
        height: 45vh;
        flex-shrink: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        /* Add custom scrollbar styling for mobile */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
    }
    
    /* Mobile scrollbar styling for interactive panel */
    .story-interactive-panel::-webkit-scrollbar {
        width: 4px;
    }
    
    .story-interactive-panel::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .story-interactive-panel::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 2px;
    }
    
    .story-nav-controls {
        top: 27.5vh;
        padding: 0 10px;
    }
    
    .story-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .story-close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .story-progress-container {
        top: 10px;
        left: 20px;
        transform: none;
    }
    
    .story-progress-bar {
        width: 150px;
    }
    
    .story-counter {
        font-size: 0.8rem;
    }
    
    .story-header {
        padding: 12px 15px;
    }
    
    .story-content-info {
        padding: 12px 15px;
    }
    
    .story-options-dropdown {
        top: 10px;
        right: 12px;
    }
    
    .story-options-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .story-options-menu {
        min-width: 130px;
        right: -5px;
    }
    
    .story-option-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .story-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        padding: 10px 15px;
    }
    
    .story-stats .stat-item {
        font-size: 0.8rem;
    }
    
    .story-stats .stat-item i {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .story-interaction-section {
        padding: 12px 15px;
    }
    
    .story-action-buttons {
        gap: 15px;
    }
    
    .story-interaction-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    
    
    .share-modal-content,
    .donation-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .story-viewer-content {
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    
    .story-media-container {
        min-height: 50vh;
        max-height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .story-interactive-panel {
        height: 50vh;
        overflow-y: auto;
        /* Better mobile scrolling */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .story-nav-controls {
        top: 25vh;
    }
    
    .story-progress-bar {
        width: 100px;
    }
    
    .story-header {
        padding: 10px 12px;
    }
    
    .story-user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .story-username {
        font-size: 1rem;
    }
    
    .story-date {
        font-size: 0.75rem;
    }
    
    .story-action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .story-actions-top {
        gap: 6px;
    }
    
    .story-content-info {
        padding: 10px 12px;
    }
    
    .story-options-dropdown {
        top: 8px;
        right: 10px;
    }
    
    .story-options-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .story-options-menu {
        min-width: 120px;
        right: -8px;
        margin-top: 5px;
    }
    
    .story-option-item {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .story-option-item i {
        font-size: 0.75rem;
    }
    
    .story-title {
        font-size: 1.1rem;
    }
    
    .story-description {
        font-size: 0.85rem;
    }
    
    .story-stats {
        padding: 8px 12px;
        gap: 3px;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .story-stats .stat-item {
        font-size: 0.75rem;
    }
    
    .story-stats .stat-item i {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .story-stats .stat-item span {
        font-size: 0.8rem !important;
    }
    
    .story-stats .stat-item small {
        font-size: 0.6rem !important;
    }
    
    .story-interaction-section {
        padding: 10px 12px;
    }
    
    .story-action-buttons {
        gap: 12px;
    }
    
    .story-interaction-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .comments-header {
        padding: 10px 12px;
    }
    
    .comments-header h4 {
        font-size: 0.9rem;
    }
    
    .add-comment-section {
        padding: 8px 12px;
    }
    
    .comment-user-avatar {
        width: 28px;
        height: 28px;
    }
    
    #story-comment-input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .comment-submit-btn {
        width: 30px;
        height: 30px;
    }
    
    .comments-list {
        max-height: 120px;
    }
}

/* Very Small Mobile (< 320px) */
@media (max-width: 319px) {
    .story-viewer-content {
        font-size: 0.9rem;
    }
    
    .story-media-container {
        min-height: 45vh;
        max-height: 45vh;
    }
    
    .story-interactive-panel {
        height: 55vh;
        max-height: 55vh;
    }
    
    .story-header {
        padding: 8px;
    }
    
    .story-content-info {
        padding: 8px;
    }
    
    .story-stats {
        padding: 6px 8px;
    }
    
    .story-interaction-section {
        padding: 8px;
    }
    
    .comments-header {
        padding: 8px;
    }
    
    .add-comment-section {
        padding: 6px 8px;
    }
}

/* Improved orientation specific adjustments */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
    .story-viewer-content {
        flex-direction: row;
        height: 100vh;
        max-height: 100vh;
    }
    
    .story-media-container {
        flex: 1;
        height: 100vh;
        max-height: 100vh;
        min-width: 0; /* Allow flexbox to shrink */
    }
    
    .story-interactive-panel {
        width: 280px;
        max-width: 320px;
        min-width: 260px;
        height: 100vh;
        max-height: 100vh;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        flex-shrink: 0;
    }
    
    .story-nav-controls {
        top: 50%;
        transform: translateY(-50%);
        padding: 0 5px; /* Reduced padding in landscape */
    }
    
    .story-nav-btn {
        width: 35px;
        height: 35px; /* Smaller buttons in landscape */
    }
    
    /* Optimize spacing for landscape */
    .story-header,
    .story-content-info,
    .story-interaction-section,
    .comments-header,
    .add-comment-section {
        padding: 8px 12px;
    }
    
    .story-stats {
        padding: 6px 12px;
    }
}

/* Enhanced Comment System Styles */
.comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.comment-actions .btn {
    padding: 2px 8px;
    font-size: 11px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.comment-actions .btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.comment-actions .btn.text-danger {
    color: #ef4444;
}

.comment-actions .btn.text-danger:hover {
    color: #dc2626;
}

.comment-replies {
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-reply {
    margin-top: 12px;
}

.comment-reply .comment-user-avatar {
    width: 24px;
    height: 24px;
}

.comment-reply-form {
    margin-top: 8px;
}

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

.reply-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.reply-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.reply-input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.reply-submit-btn {
    background: #3b82f6;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reply-submit-btn:hover {
    background: #2563eb;
}

.edit-input-group {
    margin-top: 4px;
}

.edit-input-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
    margin-bottom: 8px;
}

.edit-input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.comment-save-btn, .comment-cancel-btn {
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-right: 6px;
}

.comment-save-btn {
    background: #10b981;
    color: white;
}

.comment-save-btn:hover {
    background: #059669;
}

.comment-cancel-btn {
    background: #6b7280;
    color: white;
}

.comment-cancel-btn:hover {
    background: #4b5563;
}

/* Mobile responsive adjustments for enhanced comments */
@media (max-width: 768px) {
    .comment-replies {
        padding-left: 12px;
        margin-left: 8px;
    }
    
    .comment-actions .btn {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .reply-input-group input {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Prevent zoom on input focus for iOS */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Improve scrolling performance */
.story-interactive-panel,
.comments-list,
.share-modal-content,
.donation-modal-content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Accessibility improvements for high contrast mode */
@media (prefers-contrast: high) {
    .story-interactive-panel {
        border-left-color: rgba(255, 255, 255, 0.5);
    }
    
    .comments-list::-webkit-scrollbar-thumb,
    .story-interactive-panel::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.8);
    }
    
    .story-action-btn,
    .story-interaction-btn {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .story-viewer-content,
    .story-interaction-btn,
    .story-nav-btn,
    .story-close-btn {
        transition: none;
        animation: none;
    }
    
    .story-interactive-panel,
    .comments-list {
        scroll-behavior: auto;
    }
}

/* Loading States */
.story-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 1.1rem;
}

.story-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4100f5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.story-viewer-modal.show .story-viewer-content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.story-viewer-content.slide-in-right {
    animation: slideInFromRight 0.3s ease-out;
}

.story-viewer-content.slide-in-left {
    animation: slideInFromLeft 0.3s ease-out;
}

/* Notification styles */
.story-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 15000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.story-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.story-notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    border-color: rgba(34, 197, 94, 0.3);
}

.story-notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border-color: rgba(239, 68, 68, 0.3);
}

.story-notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    border-color: rgba(59, 130, 246, 0.3);
}


/* Edit Modal Styles */
.story-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.story-edit-modal.show {
    opacity: 1;
    visibility: visible;
}

.edit-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.story-edit-modal.show .edit-modal-content {
    transform: translateY(0);
}

.edit-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.edit-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.edit-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.edit-modal-body {
    padding: 20px;
}

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

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

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

.edit-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

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

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

/* Dark theme for edit modal */
@media (prefers-color-scheme: dark) {
    .edit-modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .edit-modal-header {
        border-bottom-color: #374151;
    }
    
    .edit-modal-header h3 {
        color: #f9fafb;
    }
    
    .edit-modal-footer {
        border-top-color: #374151;
    }
}

    .form-group label {
        color: #f3f4f6;
    }
    
    .form-group input[type="text"],
    .form-group textarea {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .form-group input[type="text"]:focus,
    .form-group textarea:focus {
        border-color: #60a5fa;
    }
}