/* Custom Styles for Boston Property Manager */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

.bg-new-banner{
    background: url('../images/home-bnr.jpg') bottom/cover no-repeat;
    min-height: 50vh;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}
.bg-blue-600{
    background: #008bd2;
    background-color: #008bd2 !important;
}
.bg-new-banner p{
    font-size: 22px;
}
/* Button hover effects */
button {
    cursor: pointer;
}

button:active {
    transform: scale(0.98);
}

/* Input focus effects */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Property card hover effect */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}

/* Slide up animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.3s ease-out;
}

/* Responsive typography */
@media (max-width: 768px) {
    #exportBtn{
        padding: 5px !important;
    }
    .mobile-overflow-x-scroll{
        overflow-x: scroll !important;
    }
    .mobile-sm-text{
        font-size: 10px;
    }
    .mobile-hide{
        display: none !important;
    }
    .d-grid-mobile{
        display: grid !important;
    }
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Property counter styles */
.property-counter {
    transition: all 0.3s ease;
}

/* Title validation styles */
#titleError, #titleSuccess {
    transition: all 0.3s ease;
}

.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.border-green-500 {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.property-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.count-number {
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.count-number:hover {
    transform: scale(1.05);
}

/* Loading animation for counter */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Title validation styles */
#titleError, #titleSuccess {
    transition: all 0.3s ease;
}

.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.border-green-500 {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

/* Image status styles */
#imageSuccess, #imageError {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease-in;
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .no-print {
        display: none;
    }
}
