/* Release Notes Modal Styles */
.release-notes-overlay {
    position: fixed;
    top: 0;
  left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
  backdrop-filter: blur(2px);
}

/* Admin Dialog (Wider and Taller) */
.admin-dialog {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 1000px;
max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.release-notes-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
 opacity: 0;
      transform: translateY(20px);
    }
    to {
     opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
  font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.up-to-date-banner {
background: linear-gradient(135deg, #4CAF50 0%, #43a047 100%);
  color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    justify-content: center;
    font-size: 1rem;
}

.modal-body {
 padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.release-note-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.release-note-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.release-note-card.new {
    border-color: #1976d2;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.note-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.note-title strong {
    font-size: 1.1rem;
    color: #2c3e50;
}

.new-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.note-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    animation: expandContent 0.3s ease;
}

@keyframes expandContent {
    from {
     opacity: 0;
    max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.section {
    margin-bottom: 1rem;
}

.section h4 {
    margin: 0 0 0.5rem 0;
    color: #1976d2;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section ul {
    margin: 0;
    padding-left: 1.5rem;
}

.section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
  color: #2c3e50;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

/* Badge for NavMenu */
.release-notes-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

/* Markdown Content Styles */
.markdown-content {
  line-height: 1.6;
    color: #2c3e50;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: #1976d2;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.markdown-content h1 {
    font-size: 1.75rem;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
 padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content code {
  background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e91e63;
}

.markdown-content pre {
 background: #f5f5f5;
  padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.markdown-content blockquote {
    border-left: 4px solid #1976d2;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

.markdown-content a {
    color: #1976d2;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    text-align: left;
}

.markdown-content th {
    background: #f5f5f5;
    font-weight: 600;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .release-notes-modal {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
     font-size: 1.25rem;
    }

 .modal-body {
        padding: 1rem;
    }

    .release-note-card {
        padding: 1rem;
    }

    .note-title strong {
        font-size: 1rem;
    }
    
    .admin-dialog {
        width: 98%;
        max-height: 95vh;
    }
}
