/**
 * MeetLoop - Combined Styles
 * Brand Colors + Dark Mode + Rich Editor
 */

/* ============================================
   BRAND COLORS
   Primary: #79b925 (Grün)
   Secondary: #0270c2 (Blau)
   ============================================ */

:root {
    --brand-primary: #79b925;
    --brand-primary-hover: #6aa320;
    --brand-primary-light: #e8f5d9;
    --brand-primary-dark: #5a8a1c;

    --brand-secondary: #0270c2;
    --brand-secondary-hover: #025fa6;
    --brand-secondary-light: #e0f0ff;
    --brand-secondary-dark: #015694;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.hover\:bg-brand-primary-hover:hover {
    background-color: var(--brand-primary-hover) !important;
}

.bg-brand-primary-light {
    background-color: var(--brand-primary-light) !important;
}

.text-brand-primary {
    color: var(--brand-primary) !important;
}

.dark .text-brand-primary {
    color: #a3d65c !important;
}

.border-brand-primary {
    border-color: var(--brand-primary) !important;
}

.focus\:ring-brand-primary:focus {
    --tw-ring-color: var(--brand-primary) !important;
}

.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
}

.hover\:bg-brand-secondary-hover:hover {
    background-color: var(--brand-secondary-hover) !important;
}

.bg-brand-secondary-light {
    background-color: var(--brand-secondary-light) !important;
}

.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.dark .text-brand-secondary {
    color: #5eb3ff !important;
}

.border-brand-secondary {
    border-color: var(--brand-secondary) !important;
}

.focus\:ring-brand-secondary:focus {
    --tw-ring-color: var(--brand-secondary) !important;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
}

.bg-gradient-brand-reverse {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%) !important;
}

.dark .bg-brand-primary-light {
    background-color: rgba(121, 185, 37, 0.2) !important;
}

.dark .bg-brand-secondary-light {
    background-color: rgba(2, 112, 194, 0.2) !important;
}

.dark .text-brand-primary-icon {
    color: #9ed654 !important;
}

.dark .text-brand-secondary-icon {
    color: #4da3e8 !important;
}

/* ============================================
   DARK MODE
   ============================================ */

.dark body,
.dark nav,
.dark footer,
.dark .bg-white,
.dark .bg-gray-50,
.dark .bg-gray-100 {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dark .bg-white {
    background-color: rgb(31 41 55) !important;
}

.dark .shadow-sm,
.dark .shadow-md,
.dark .shadow-lg {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
}

.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="date"],
.dark input[type="time"],
.dark input[type="url"],
.dark input[type="tel"],
.dark input[type="search"],
.dark textarea,
.dark select {
    background-color: rgb(55 65 81);
    border-color: rgb(75 85 99);
    color: rgb(229 231 235);
}

.dark input[type="text"]::placeholder,
.dark input[type="email"]::placeholder,
.dark input[type="password"]::placeholder,
.dark textarea::placeholder {
    color: rgb(156 163 175);
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark textarea:focus,
.dark select:focus {
    border-color: rgb(99 102 241);
    background-color: rgb(55 65 81);
}

.dark input[type="checkbox"],
.dark input[type="radio"] {
    background-color: rgb(55 65 81);
    border-color: rgb(75 85 99);
}

.dark table {
    border-color: rgb(55 65 81);
}

.dark th {
    background-color: rgb(55 65 81);
    color: rgb(229 231 235);
}

.dark td {
    border-color: rgb(55 65 81);
    color: rgb(209 213 219);
}

.dark tr:hover {
    background-color: rgb(55 65 81) !important;
}

.dark code {
    background-color: rgb(55 65 81);
    color: rgb(249 115 22);
}

.dark pre {
    background-color: rgb(17 24 39);
    border-color: rgb(55 65 81);
}

.dark .bg-blue-50 {
    background-color: rgb(30 58 138 / 0.3) !important;
}

.dark .bg-green-50 {
    background-color: rgb(20 83 45 / 0.3) !important;
}

.dark .bg-red-50 {
    background-color: rgb(127 29 29 / 0.3) !important;
}

.dark .bg-yellow-50 {
    background-color: rgb(113 63 18 / 0.3) !important;
}

.dark .bg-orange-50 {
    background-color: rgb(124 45 18 / 0.3) !important;
}

.dark .border-blue-200 {
    border-color: rgb(59 130 246 / 0.5) !important;
}

.dark .border-green-200 {
    border-color: rgb(34 197 94 / 0.5) !important;
}

.dark .border-red-200 {
    border-color: rgb(239 68 68 / 0.5) !important;
}

.dark .border-yellow-200 {
    border-color: rgb(234 179 8 / 0.5) !important;
}

.dark .text-blue-700,
.dark .text-blue-800,
.dark .text-blue-900 {
    color: rgb(147 197 253) !important;
}

.dark .text-green-700,
.dark .text-green-800 {
    color: rgb(134 239 172) !important;
}

.dark .text-red-700,
.dark .text-red-800 {
    color: rgb(252 165 165) !important;
}

.dark .text-yellow-700,
.dark .text-yellow-800 {
    color: rgb(253 224 71) !important;
}

.dark .bg-gray-100 {
    background-color: rgb(55 65 81) !important;
}

.dark .text-gray-800 {
    color: rgb(229 231 235) !important;
}

.dark .prose {
    color: rgb(209 213 219);
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4,
.dark .prose h5,
.dark .prose h6 {
    color: rgb(243 244 246);
}

.dark .prose a {
    color: rgb(129 140 248);
}

.dark .prose strong {
    color: rgb(243 244 246);
}

.dark .prose blockquote {
    border-color: rgb(75 85 99);
    color: rgb(156 163 175);
}

.dark .prose ul > li::before {
    background-color: rgb(156 163 175);
}

.dark .prose ol > li::before {
    color: rgb(156 163 175);
}

.dark .prose hr {
    border-color: rgb(55 65 81);
}

.dark ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.dark ::-webkit-scrollbar-track {
    background: rgb(31 41 55);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgb(75 85 99);
    border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgb(107 114 128);
}

.dark .text-gray-900 {
    color: rgb(243 244 246) !important;
}

.dark h1.text-gray-900,
.dark h2.text-gray-900,
.dark h3.text-gray-900,
.dark h1,
.dark h2,
.dark h3 {
    color: rgb(255 255 255) !important;
}

.dark .text-gray-700 {
    color: rgb(209 213 219) !important;
}

.dark .text-gray-600 {
    color: rgb(156 163 175) !important;
}

.dark .text-gray-500 {
    color: rgb(156 163 175) !important;
}

.dark .text-gray-400 {
    color: rgb(156 163 175) !important;
}

.dark label {
    color: rgb(209 213 219);
}

.dark .font-medium.text-gray-700,
.dark label.text-gray-700 {
    color: rgb(209 213 219) !important;
}

.dark a.text-gray-600:hover,
.dark a.text-gray-500:hover {
    color: rgb(229 231 235) !important;
}

.dark .border-gray-200 {
    border-color: rgb(55 65 81) !important;
}

.dark .border-gray-300 {
    border-color: rgb(75 85 99) !important;
}

.dark .divide-gray-200 > * + * {
    border-color: rgb(55 65 81) !important;
}

.dark .bg-gray-50 {
    background-color: rgb(17 24 39) !important;
}

.dark .hover\:bg-gray-50:hover {
    background-color: rgb(55 65 81) !important;
}

.dark .hover\:bg-gray-100:hover {
    background-color: rgb(55 65 81) !important;
}

.dark .rounded-xl.shadow-sm,
.dark .rounded-lg.shadow-sm {
    background-color: rgb(31 41 55);
}

.dark .rounded-xl.shadow-sm h3,
.dark .rounded-lg.shadow-sm h3 {
    color: rgb(209 213 219) !important;
}

.dark .flex.items-center.gap-1 .text-gray-500,
.dark .flex.items-center.gap-2 .text-gray-500 {
    color: rgb(156 163 175) !important;
}

.dark p.text-gray-600,
.dark span.text-gray-600,
.dark div.text-gray-600 {
    color: rgb(156 163 175) !important;
}

.dark .bg-blue-100 {
    background-color: rgb(30 58 138 / 0.4) !important;
}

.dark .text-blue-700 {
    color: rgb(147 197 253) !important;
}

.dark .bg-green-100 {
    background-color: rgb(20 83 45 / 0.4) !important;
}

.dark .text-green-700 {
    color: rgb(134 239 172) !important;
}

.dark .bg-red-100 {
    background-color: rgb(127 29 29 / 0.4) !important;
}

.dark .bg-gray-100.text-gray-600,
.dark .bg-gray-100.text-gray-700 {
    background-color: rgb(55 65 81) !important;
    color: rgb(209 213 219) !important;
}

.dark .text-sm.text-gray-500,
.dark .text-sm.text-gray-600,
.dark .text-xs.text-gray-500,
.dark .text-xs.text-gray-400 {
    color: rgb(156 163 175) !important;
}

.dark .space-y-4 .bg-white,
.dark .space-y-3 .bg-white,
.dark .space-y-2 .bg-white {
    background-color: rgb(31 41 55) !important;
}

.dark [x-show].bg-white {
    background-color: rgb(31 41 55) !important;
}

.dark .text-center .text-gray-500,
.dark .text-center .text-gray-600 {
    color: rgb(156 163 175) !important;
}

.dark .text-gray-400 {
    color: rgb(107 114 128) !important;
}

.dark button.text-gray-600,
.dark button.text-gray-500 {
    color: rgb(156 163 175) !important;
}

.dark button.text-gray-600:hover,
.dark button.text-gray-500:hover {
    color: rgb(229 231 235) !important;
}

.dark details summary {
    color: rgb(209 213 219);
}

.dark .prose-lg {
    color: rgb(209 213 219);
}

.dark .prose-lg p,
.dark .prose-lg li {
    color: rgb(209 213 219);
}

.dark .border-b.border-gray-200 {
    border-color: rgb(55 65 81) !important;
}

.dark .max-w-2xl .bg-white,
.dark .max-w-xl .bg-white,
.dark .max-w-lg .bg-white,
.dark .max-w-md .bg-white {
    background-color: rgb(31 41 55) !important;
}

.dark .divide-y > div {
    border-color: rgb(55 65 81);
}

.dark .grid .bg-white {
    background-color: rgb(31 41 55) !important;
}

.dark .text-3xl.font-bold,
.dark .text-2xl.font-bold {
    color: rgb(255 255 255) !important;
}

.dark input[type="datetime-local"] {
    background-color: rgb(55 65 81);
    border-color: rgb(75 85 99);
    color: rgb(229 231 235);
}

.dark .text-gray-700.font-medium {
    color: rgb(209 213 219) !important;
}

.dark .font-medium:not([class*="text-"]) {
    color: rgb(243 244 246);
}

.dark span.font-medium {
    color: rgb(243 244 246);
}

.dark .bg-yellow-100 {
    background-color: rgb(254 240 138) !important;
}

.dark .bg-yellow-100 .text-yellow-700,
.dark .text-yellow-700,
.dark .text-yellow-800 {
    color: rgb(113 63 18) !important;
}

.dark .bg-amber-50 {
    background-color: rgb(254 243 199) !important;
}

.dark .bg-amber-50 .text-amber-800,
.dark .bg-amber-50 label,
.dark .bg-amber-50 span {
    color: rgb(120 53 15) !important;
}

/* ============================================
   RICH TEXT EDITOR (Quill)
   ============================================ */

.rich-editor-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

.ql-container {
    font-family: inherit;
    font-size: 1rem;
}

.ql-editor {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
}

.ql-editor.ql-blank::before {
    font-style: normal;
    color: #9ca3af;
}

.ql-toolbar.ql-snow {
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #f9fafb;
}

.ql-container.ql-snow {
    border: 1px solid #d1d5db;
    border-radius: 0 0 0.5rem 0.5rem;
    background: white;
}

.ql-snow .ql-stroke {
    stroke: #374151;
}

.ql-snow .ql-fill {
    fill: #374151;
}

.ql-snow .ql-picker {
    color: #374151;
}

.ql-snow .ql-picker-options {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ql-emoji::before {
    content: "\1F60A";
    font-size: 16px;
}

.ql-snow .ql-formats .ql-clean {
    width: auto !important;
    padding: 0 5px;
}

.ql-snow .ql-clean::after {
    content: "\2715";
    font-size: 14px;
    font-weight: bold;
    color: #6b7280;
}

.ql-snow .ql-clean svg {
    display: none;
}

.ql-snow .ql-clean:hover::after {
    color: #ef4444;
}

.ql-snow .ql-customLink {
    width: 28px !important;
}

.ql-snow .ql-customLink svg {
    width: 18px;
    height: 18px;
}

.dark .ql-toolbar.ql-snow {
    border-color: #4b5563;
    background: #374151;
}

.dark .ql-container.ql-snow {
    border-color: #4b5563;
    background: #1f2937;
}

.dark .ql-editor {
    color: #f3f4f6;
}

.dark .ql-editor.ql-blank::before {
    color: #6b7280;
}

.dark .ql-snow .ql-stroke {
    stroke: #d1d5db;
}

.dark .ql-snow .ql-fill {
    fill: #d1d5db;
}

.dark .ql-snow .ql-picker {
    color: #d1d5db;
}

.dark .ql-snow .ql-picker-label:hover,
.dark .ql-snow .ql-picker-label.ql-active {
    color: #5eead4;
}

.dark .ql-snow .ql-picker-options {
    background: #374151;
    border-color: #4b5563;
}

.dark .ql-snow .ql-picker-item:hover {
    color: #5eead4;
}

.dark .ql-snow button:hover .ql-stroke,
.dark .ql-snow .ql-picker-label:hover .ql-stroke {
    stroke: #5eead4;
}

.dark .ql-snow button:hover .ql-fill,
.dark .ql-snow .ql-picker-label:hover .ql-fill {
    fill: #5eead4;
}

.dark .ql-snow button.ql-active .ql-stroke {
    stroke: #5eead4;
}

.dark .ql-snow button.ql-active .ql-fill {
    fill: #5eead4;
}

.dark .ql-snow .ql-clean::after {
    color: #9ca3af;
}

.dark .ql-snow .ql-clean:hover::after {
    color: #f87171;
}

.rich-content {
    line-height: 1.5;
}

.rich-content p {
    margin-bottom: 0rem;
}

.rich-content p:last-child {
    margin-bottom: 0;
}

.rich-content strong {
    font-weight: 600;
}

.dark .rich-content strong {
    color: #f3f4f6;
}

.rich-content em {
    font-style: italic;
}

.rich-content u {
    text-decoration: underline;
}

.rich-content s {
    text-decoration: line-through;
}

.rich-content h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.dark .rich-content h1 {
    color: #f9fafb;
}

.rich-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.25rem;
}

.dark .rich-content h2 {
    color: #f3f4f6;
    border-bottom-color: #4b5563;
}

.rich-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.dark .rich-content h3 {
    color: #e5e7eb;
}

.rich-content ul,
.rich-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.rich-content ul {
    list-style-type: disc;
}

.rich-content ol {
    list-style-type: decimal;
}

.rich-content li {
    margin-bottom: 0.25rem;
}

.dark .rich-content li {
    color: #d1d5db;
}

.rich-content a {
    color: var(--brand-secondary);
    text-decoration: underline;
}

.dark .rich-content a {
    color: #5eb3ff;
}

.rich-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: #6b7280;
    font-style: italic;
}

.dark .rich-content blockquote {
    border-left-color: var(--brand-primary);
    color: #9ca3af;
}

.rich-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.dark .rich-content hr {
    border-top-color: #4b5563;
}

.rich-content .ql-color-red { color: #dc2626; }
.rich-content .ql-color-orange { color: #ea580c; }
.rich-content .ql-color-yellow { color: #ca8a04; }
.rich-content .ql-color-green { color: #16a34a; }
.rich-content .ql-color-blue { color: #2563eb; }
.rich-content .ql-color-emerald { color: #9333ea; }
.rich-content .ql-color-pink { color: #db2777; }

.rich-content .ql-size-small { font-size: 0.875rem; }
.rich-content .ql-size-large { font-size: 1.25rem; }
.rich-content .ql-size-huge { font-size: 1.5rem; }

.ql-container.ql-snow:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(121, 185, 37, 0.2);
}

.dark .ql-container.ql-snow:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(121, 185, 37, 0.2);
}

.ql-snow .ql-tooltip {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #374151;
}

.dark .ql-snow .ql-tooltip {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.ql-snow .ql-tooltip input[type=text] {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.dark .ql-snow .ql-tooltip input[type=text] {
    background: #1f2937;
    border-color: #4b5563;
    color: #f3f4f6;
}
