/* Base styling */
.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 1.5rem; */
}
.tool-hero{
    background: white !important;
    padding: 25px !important;
    border-radius: 5px !important; 
  }

  .tool-logo{
    width: 80px;
    margin: auto !important;
    justify-content: center !important;
    display: flex;

  }
  .tool-title{
    justify-content: center !important;
    display: flex;
    margin-top: 8px;
  }

.markdown-container {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.markdown-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.markdown-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    font-size: 0.875rem;
    border-radius: 0.25rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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

.btn-danger {
    background-color: rgba(209, 27, 27, 0.953);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: rgb(154, 18, 18);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #1d4ed8;
}

/* Toolbar */
.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.markdown-tool {
    padding: 0.25rem;
    border-radius: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #4b5563;
}
.btn-success {
    background-color: #1bb55ee8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
  }
  
  .btn-success:hover {
    background-color: #1b944fe8;
  }
  
.primary-btn {
    background-color: #4361ee;
    color: white;
    border: none;
    flex: 2;
  }
  
  .primary-btn:hover {
    background-color: #553c9a;
  }

.markdown-tool:hover {
    background-color: #e5e7eb;
}

/* Editor and Preview */
.editor-area {
    display: grid;
    grid-template-columns: 1fr;
    height: 28rem;
}

.markdown-textarea {
    width: 100%;
    height: 100%;
    padding: 1rem;
    /* font-family: monospace; */
    color: #1f2937;
    border: none;
    resize: none;
    outline: none;
}

.markdown-preview {
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    border-top: 1px solid #e5e7eb;
}

/* Footer */
.markdown-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.editor-stats {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Help Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 0.5rem;
    max-width: 42rem;
    width: 100%;
    margin: 0 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.modal-close:hover {
    color: #6b7280;
}

.modal-body {
    padding: 1rem;
    overflow-y: auto;
    max-height: 24rem;
}

.modal-footer {
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Table in Help Modal */
.help-table {
    width: 100%;
    border-collapse: collapse;
}

.help-table th,
.help-table td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    text-align: left;
}

.help-table th {
    background-color: #f9fafb;
}

.help-table code {
    font-family: monospace;
    font-size: 0.875rem;
}

/* Markdown Preview Styling */
.prose h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 1rem 0;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.75rem 0;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.prose p {
    margin: 0.5rem 0;
}

.prose strong {
    font-weight: bold;
}

.prose em {
    font-style: italic;
}

.prose a {
    color: #2563eb;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.prose img {
    max-width: 100%;
    margin: 0.5rem 0;
}

.prose ul, 
.prose ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

.prose pre {
    background-color: #f3f4f6;
    padding: 0.5rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
}

.prose blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1rem;
    font-style: italic;
    margin: 0.5rem 0;
}

.prose hr {
    border: 0;
    border-top: 1px solid #d1d5db;
    margin: 1rem 0;
}