@import "tailwindcss";

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body{
    --link-hover: #e4e4e7;
    --link-active: #e4e4e7;
}

.text-gray-6{
    color: #4b5563;
}

.text-error{
    @apply text-red-500 text-xs;
}
/* Button classes */
.btn-base {
    @apply inline-flex items-center px-3 py-3 border border-transparent text-sm leading-4 font-medium rounded-md cursor-pointer;
}

.btn-save {
    @apply shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500
}

.btn-delete {
    @apply shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500
}

.btn-cancel {
    @apply bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 border border-gray-300;
}

.clickable-link-base{
    @apply no-underline cursor-pointer;
}

.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-offset-2;
}

/* Table classes */
.table-head-cell {
    @apply px-6 py-3 text-left text-sm font-medium uppercase tracking-wider;
}

.table-body-cell {
    @apply px-6 py-4 whitespace-nowrap text-sm font-medium border-b
}

/*for when we need cells to wrap text*/
.table-body-cell-2 {
    @apply px-6 py-4 text-sm font-medium border-b
}

.pill-base{
    @apply px-2 inline-flex text-xs leading-5 font-semibold rounded-full
}

.input-base {
    @apply py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm
}

.checkbox-base{
    @apply focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.document-card {
    transition: all 0.3s ease;
    height: 100%;
}
.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.search-highlight {
     background-color: #fef08a;
     font-weight: bold;
}
.search-context {
    font-family: monospace;
    white-space: pre-wrap;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    margin-top: 0.625rem;
}

/* Toast classes */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 50%;
    transform: translateX(50%);
    z-index: 1000;
}
.toast {
    background: #323232;
    color: #fff;
    padding: 0.75rem;
    width: 18.75rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadein 0.3s ease;
}
.toast.success { @apply bg-white text-green-700 border-l-4 border-green-600 dark:bg-green-700 dark:text-white }
.toast.error { @apply bg-white text-red-700 border-l-4 border-red-600 dark:bg-red-700 dark:text-white }
.toast.info { @apply bg-white text-blue-700 border-l-4 border-blue-600 dark:bg-blue-700 dark:text-white }
.toast.warning { @apply bg-white text-yellow-700 border-l-4 border-yellow-600 dark:bg-yellow-700 dark:text-white }
@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
