@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
}

/* Main Container */
#froala_dad-plugin-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
    min-height: 800px;
}

/* Input Column */
.froala_dad-plugin-input-column {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 800px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.froala_dad-plugin-input-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #374151;
    margin-bottom: 1.5rem;
}

/* Meta Fields */
.froala_dad-plugin-meta-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.froala_dad-plugin-meta-inputs {
    margin-bottom: 1rem;
}

.froala_dad-plugin-meta-field {
    margin-bottom: 1rem;
}

.froala_dad-plugin-meta-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 0.25rem;
}

.froala_dad-plugin-meta-field-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.froala_dad-plugin-meta-field-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3B82F6;
    border-color: #3B82F6;
}

/* Editor */
.froala_dad-plugin-editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    min-width: 0;
    overflow: hidden;
}

.froala_dad-plugin-editor-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 0.5rem;
}

.froala_dad-plugin-editor-area {
    flex: 1;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    min-height: 200px;
    max-width: 100%;
    overflow: hidden;
}

.froala_dad-plugin-required-mark {
    color: #DC2626;
}

/* Froala Editor Content Area Width Control */
.froala_dad-plugin-editor-area .fr-box {
    max-width: 100%;
    overflow: hidden;
}

.froala_dad-plugin-editor-area .fr-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

.froala_dad-plugin-editor-area .fr-element {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Controls Area */
.froala_dad-plugin-controls-area {
    margin-top: 1.5rem;
    flex-shrink: 0;
}

.froala_dad-plugin-analyze-button {
    width: 100%;
    background-color: #2563EB;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.froala_dad-plugin-analyze-button:hover {
    background-color: #1D4ED8;
}

.froala_dad-plugin-analyze-button:focus {
    outline: none;
    ring: 2px;
    ring-offset: 2px;
    ring-color: #3B82F6;
}

.froala_dad-plugin-analyze-button:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
}

.froala_dad-plugin-progress-container {
    width: 100%;
    background-color: #E5E7EB;
    border-radius: 9999px;
    height: 10px;
    margin-top: 1rem;
}

.froala_dad-plugin-progress-bar {
    background-color: #10B981;
    height: 10px;
    border-radius: 9999px;
    transition: width 0.3s;
    width: 0%;
}

.froala_dad-plugin-error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    border-radius: 6px;
    text-align: center;
}

.froala_dad-plugin-status-text {
    text-align: center;
    color: #6B7280;
    margin-top: 0.5rem;
    height: 1.5rem;
}

/* Results Column */
.froala_dad-plugin-results-column {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 800px;
    overflow: hidden;
}

.froala_dad-plugin-results-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #374151;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Score Summary */
.froala_dad-plugin-score-summary {
    margin-bottom: 1rem;
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 1rem;
    flex-shrink: 0;
}

.froala_dad-plugin-score-summary-title {
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 0.75rem;
    text-align: center;
}

.froala_dad-plugin-score-table {
    width: 100%;
    font-size: 0.875rem;
}

.froala_dad-plugin-score-header {
    text-align: left;
    padding: 0.5rem;
    color: #1D4ED8;
    border-bottom: 1px solid #BFDBFE;
}

.froala_dad-plugin-score-center {
    text-align: center;
}

.froala_dad-plugin-score-table tbody tr {
    border-bottom: 1px solid #DBEAFE;
}

.froala_dad-plugin-score-table tbody td {
    padding: 0.5rem;
    color: #374151;
}

.froala_dad-plugin-score-footer {
    border-top: 2px solid #93C5FD;
    font-weight: bold;
}

.froala_dad-plugin-score-footer-label {
    padding: 0.5rem;
    color: #1E40AF;
}

.froala_dad-plugin-average-score-value {
    background-color: #2563EB;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 1rem;
}

/* Priority badges */
.froala_dad-plugin-priority-high {
    background-color: #FEF2F2;
    color: #991B1B;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.froala_dad-plugin-priority-medium {
    background-color: #FFFBEB;
    color: #92400E;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.froala_dad-plugin-priority-low {
    background-color: #F0FDF4;
    color: #166534;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.froala_dad-plugin-score-high {
    background-color: #F0FDF4;
    color: #166534;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.froala_dad-plugin-score-medium {
    background-color: #FFFBEB;
    color: #92400E;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.froala_dad-plugin-score-low {
    background-color: #FEF2F2;
    color: #991B1B;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Tabs */
.froala_dad-plugin-tabs-container {
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.froala_dad-plugin-tabs-nav {
    display: flex;
    gap: 1rem;
}

.froala_dad-plugin-tab-link {
    color: #6B7280;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.75rem 0.25rem;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.froala_dad-plugin-tab-link:hover {
    color: #2563EB;
}

.froala_dad-plugin-tab-active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

/* Tab Content */
.froala_dad-plugin-tab-content-container {
    flex: 1;
    margin-top: 1rem;
    height: 600px;
    overflow-y: auto;
}

.froala_dad-plugin-tab-content {
    height: 100%;
}

.froala_dad-plugin-tab-flex {
    display: flex;
    gap: 1rem;
}

.froala_dad-plugin-hidden {
    display: none !important;
}

/* Navigation */
.froala_dad-plugin-content-nav {
    width: 33.333333%;
    flex-shrink: 0;
    height: 100%;
}

.froala_dad-plugin-nav-sticky {
    background-color: #F9FAFB;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    position: sticky;
    top: 1rem;
    z-index: 10;
    height: 500px;
    overflow-y: auto;
}

.froala_dad-plugin-nav-title {
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 0.75rem;
}

.froala_dad-plugin-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.froala_dad-plugin-nav-links li {
    margin-bottom: 0.5rem;
}

.froala_dad-plugin-nav-link {
    color: #4B5563;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.froala_dad-plugin-nav-link:hover {
    color: #2563EB;
    background-color: #EFF6FF;
    border-left-color: #2563EB;
}

.froala_dad-plugin-nav-link-active {
    color: #2563EB;
    background-color: #EFF6FF;
    border-left-color: #2563EB;
}

.froala_dad-plugin-nav-link.froala_dad-plugin-pl-5 {
    padding-left: 1.25rem;
}

.froala_dad-plugin-nav-link .froala_dad-plugin-ml-auto {
    margin-left: auto;
}

/* Results Wrapper */
.froala_dad-plugin-content-results-wrapper {
    width: 66.666667%;
    flex: 1;
}

.froala_dad-plugin-results-area {
    overflow-y: auto;
    padding: 0.25rem;
    height: 600px;
    max-height: 600px;
}

/* Initial State */
.froala_dad-plugin-initial-state {
    text-align: center;
    color: #6B7280;
    padding: 2rem;
}

.froala_dad-plugin-initial-icon {
    font-size: 3rem;
    color: #9CA3AF;
}

.froala_dad-plugin-initial-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
}

.froala_dad-plugin-initial-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Analysis Results Styling */
.froala_dad-plugin-results-area h2, .froala_dad-plugin-results-area h3 {
    color: #1E40AF;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.froala_dad-plugin-results-area h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.froala_dad-plugin-results-area h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.froala_dad-plugin-results-area p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.froala_dad-plugin-results-area strong {
    color: #1E40AF;
}

.froala_dad-plugin-score-info {
    background-color: #EFF6FF;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #2563EB;
}

.froala_dad-plugin-priority-info {
    background-color: #F9FAFB;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #6B7280;
}

.froala_dad-plugin-warning-note {
    background-color: #FFFBEB;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #F59E0B;
    color: #92400E;
}

/* Material Icons Fix */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Skeleton Loading */
.froala_dad-plugin-skeleton-loading {
    padding: 1rem;
}

.froala_dad-plugin-analyzing-text {
    text-align: center;
    color: #2563EB;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.froala_dad-plugin-animate-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.froala_dad-plugin-skeleton-loading .froala_dad-plugin-space-y-8 > div {
    margin-bottom: 2rem;
}

.froala_dad-plugin-skeleton-loading .froala_dad-plugin-space-y-3 > div {
    margin-bottom: 0.75rem;
}

.froala_dad-plugin-skeleton-loading .froala_dad-plugin-mb-4 {
    margin-bottom: 1rem;
}

.froala_dad-plugin-skeleton-loading .froala_dad-plugin-h-6 {
    height: 1.5rem;
    background-color: #E5E7EB;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.froala_dad-plugin-skeleton-loading .froala_dad-plugin-h-4 {
    height: 1rem;
    background-color: #F3F4F6;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.froala_dad-plugin-skeleton-loading .froala_dad-plugin-w-3-4 { width: 75%; }
.froala_dad-plugin-skeleton-loading .froala_dad-plugin-w-5-6 { width: 83.333333%; }
.froala_dad-plugin-skeleton-loading .froala_dad-plugin-w-1-2 { width: 50%; }
.froala_dad-plugin-skeleton-loading .froala_dad-plugin-w-full { width: 100%; }

.froala_dad-plugin-animated-bg {
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Score Badge */
.froala_dad-plugin-score-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #E5E7EB;
    color: #374151;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    #froala_dad-plugin-container {
        flex-direction: column;
    }

    .froala_dad-plugin-input-column, .froala_dad-plugin-results-column {
        min-height: auto;
    }

    .froala_dad-plugin-tab-flex {
        flex-direction: column;
    }

    .froala_dad-plugin-content-nav, .froala_dad-plugin-content-results-wrapper {
        width: 100%;
    }

    .froala_dad-plugin-nav-sticky {
        position: relative;
        height: auto;
        max-height: 400px;
    }

    .froala_dad-plugin-results-area {
        height: auto;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    #froala_dad-plugin-container {
        gap: 1rem;
    }

    .froala_dad-plugin-input-column, .froala_dad-plugin-results-column {
        padding: 1rem;
    }

    .froala_dad-plugin-input-title, .froala_dad-plugin-results-title {
        font-size: 1.25rem;
    }
}
