/* Application styles */
.simple-calendar {
    table {
        -webkit-border-horizontal-spacing: 0px;
        -webkit-border-vertical-spacing: 0px;
        background-color: rgba(0, 0, 0, 0);
        border: 1px solid rgb(221, 221, 221);
        border-collapse: collapse;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    tr {
        border-collapse: collapse;
    }

    th {
        padding: 6px;
        border-bottom: 2px solid rgb(221, 221, 221);
        border-collapse: collapse;
        border-left: 1px solid rgb(221, 221, 221);
        border-right: 1px solid rgb(221, 221, 221);
        border-top: 0px none rgb(51, 51, 51);
        box-sizing: border-box;
        text-align: left;
    }

    td {
        padding: 6px;
        vertical-align: top;
        width: 14%;

        border: 1px solid #ddd;
        border-top-color: rgb(221, 221, 221);
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: rgb(221, 221, 221);
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: rgb(221, 221, 221);
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: rgb(221, 221, 221);
        border-left-style: solid;
        border-left-width: 1px;
    }

    .calendar-heading nav {
        display: inline-block;
    }

    .day {
        height: 80px;
    }

    .wday-0 {
    }
    .wday-1 {
    }
    .wday-2 {
    }
    .wday-3 {
    }
    .wday-4 {
    }
    .wday-5 {
    }
    .wday-6 {
    }

    .today {
        background: #ffffc0;
    }

    .past {
    }
    .future {
    }

    .start-date {
    }

    .prev-month {
        background: #ddd;
    }
    .next-month {
        background: #ddd;
    }
    .current-month {
    }

    .has-events {
    }
}

/* Override slim select syling */
.ss-value {
    background-color: #9e134c !important;
}

.ss-value-text {
    color: white !important;
}

.ss-value-delete {
    border-left: solid 1px black !important;
}

.ss-value-delete svg path {
    stroke: black !important;
}

.ss-option:not(.ss-disabled).ss-selected {
    background-color: #9e134c !important;
    color: white !important;
}

.ss-content .ss-list .ss-option:hover {
    color: white !important;
    background-color: #9e134c !important;
}

.trix ul {
    list-style-type: disc;
    padding-left: 2.5rem;
}

.trix ol {
    list-style-type: decimal;
    padding-left: 2.5rem;
}

@layer base {
    trix-editor {
        @apply w-full;
    }

    trix-editor h1 {
        font-size: 1.5rem !important;
        line-height: 1.5rem !important;
        @apply leading-5 font-semibold mb-4;
    }

    trix-editor a:not(.no-underline) {
        @apply underline;
    }

    trix-editor a:visited {
        color: green;
    }

    trix-editor ul {
        list-style-type: disc;
        padding-left: 1rem;
    }

    trix-editor ol {
        list-style-type: decimal;
        padding-left: 1rem;
    }

    trix-editor pre {
        display: inline-block;
        width: 100%;
        vertical-align: top;
        font-family: monospace;
        font-size: 1.5em;
        padding: 0.5em;
        white-space: pre;
        background-color: #eee;
        overflow-x: auto;
    }

    trix-editor blockquote {
        border: 0 solid #ccc;
        border-left-width: 0px;
        border-left-width: 0.3em;
        margin-left: 0.3em;
        padding-left: 0.6em;
    }
}

/* General button styles */
.fc-button {
    background-color: white !important;
    color: white; /* White text */
    border-color: #fb7185 !important;
    border: 2px !important;
}

.fc-today-button {
    color: #9e134c !important;
    border: 2px !important;
    border-color: #9e134c !important;
}

.fc-customTodayButton-button {
    color: #9e134c !important;
    border: 2px !important;
    border-color: #9e134c !important;
}

.fc-button-active {
    background-color: #28a745;
    color: white;
}

.fc-prev-button {
    background-color: #9e134c !important;
}

.fc-next-button {
    background-color: #9e134c !important;
}

/* Markdown Editor Styles */
.markdown-editor-toolbar {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem;
}

.markdown-editor-toolbar button {
    transition: all 0.2s ease;
}

.markdown-editor-toolbar button:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.markdown-editor-textarea {
    resize: vertical;
    min-height: 300px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    line-height: 1.5;
}

.markdown-editor-textarea:focus {
    outline: none;
    box-shadow: none;
}

/* Drag and drop styles */
.markdown-editor-textarea.border-blue-500 {
    border-color: #3b82f6 !important;
}

.markdown-editor-textarea.bg-blue-50 {
    background-color: #eff6ff !important;
}

/* Blog post content images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 1.5rem auto;
    display: block;
}

.prose p:has(img) {
    text-align: center;
}

/* Image upload notification styles */
.image-upload-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.image-upload-notification.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.image-upload-notification.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
