/* Custom styles that complement Tailwind CSS */

/* Typography */
body {
    font-family: 'Inter', sans-serif;
}

/* Link hover transitions */
a {
    transition: color 0.2s ease-in-out;
}

/* Custom color classes for buttons and elements */
.bg-primary {
    background-color: hsl(222, 47%, 11%);
}

.bg-primary\/5 {
    background-color: hsla(222, 47%, 11%, 0.05);
}

.bg-primary\/90 {
    background-color: hsla(222, 47%, 11%, 0.9);
}

.hover\:bg-primary\/90:hover {
    background-color: hsla(222, 47%, 11%, 0.9);
}

.text-primary {
    color: hsl(222, 47%, 11%);
}

.text-foreground {
    color: hsl(222, 47%, 11%);
}

.text-foreground\/80 {
    color: hsla(222, 47%, 11%, 0.8);
}

.hover\:text-foreground:hover {
    color: hsl(222, 47%, 11%);
}

.hover\:bg-accent\/50:hover {
    background-color: hsla(210, 40%, 96.1%, 0.5);
}

/* Glass effect enhancements */
.glass-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Custom animations */
.animate-slide-in-bottom {
    animation: slideInBottom 0.4s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.2s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes slideInBottom {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Form elements */
input,
select,
textarea {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    background-color: white;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
    color: #1f2937;
}

/* Respect Tailwind border radius utilities */
input.rounded-r-none {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

input.rounded-l-none {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Make all buttons have pointer cursor */
button,
input[type="submit"],
input[type="button"],
.btn,
[type="button"],
[type="reset"],
[type="submit"] {
    cursor: pointer;
}

/* Placeholder styling */
::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

/* For inputs with icons - only apply padding when there's actually a left icon */
.relative input[type="email"]:not(.custom-input),
.relative input[type="password"]:not(.custom-input),
.relative input[type="text"]:not(.custom-input) {
    padding-left: 2.5rem;
    /* Make sure text doesn't overlap icon */
}

/* Disabled inputs */
input:disabled,
select:disabled,
textarea:disabled,
input[readonly],
select[readonly],
textarea[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
    opacity: 0.7;
}

.custom-input,
.custom-select,
.custom-textarea {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    background-color: white;
}

input:focus,
select:focus,
textarea:focus,
.custom-input:focus,
.custom-select:focus,
.custom-textarea:focus {
    outline: none;
    border-color: hsl(222, 47%, 11%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    transition: all 0.2s ease;
}

/* Hover state for inputs */
input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus),
.custom-input:hover:not(:focus),
.custom-select:hover:not(:focus),
.custom-textarea:hover:not(:focus) {
    border-color: hsl(222, 47%, 11%, 0.5);
}

.select-wrapper {
    position: relative;
}

/* Hide browser default arrow */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    /* Make room for custom arrow */
}

/* Remove Firefox dotted outline */
select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

/* Hide default arrow in IE */
select::-ms-expand {
    display: none;
}

/* Remove the additional arrow from the select-wrapper */
.select-wrapper:after {
    display: none;
}

/* Task status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-open {
    background-color: rgba(16, 185, 129, 0.1);
    color: rgb(16, 185, 129);
}

.status-assigned {
    background-color: rgba(245, 158, 11, 0.1);
    color: rgb(245, 158, 11);
}

.status-completed {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: rgb(245, 158, 11);
}

.status-accepted {
    background-color: rgba(16, 185, 129, 0.1);
    color: rgb(16, 185, 129);
}

.status-rejected {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
}
