/* Hirly/styling/pages/page-job-dashboard.css */
/* Minimal custom CSS for animations not easily done with Tailwind */

/* Core colors defined using CSS variables for consistency */
/* Removed local color variables to use the global ones defined in _variables.css */

/* Redefining buttons and other elements to use modern Tailwind-like styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700; /* font-bold */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border-radius: 9999px; /* rounded-full */
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-primary {
    background-color: var(--primary);
    color: var(--text-on-primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}
.btn-primary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5);
}
.btn-primary-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-primary-outline:hover {
    background-color: var(--primary);
    color: var(--text-on-primary);
}
.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--text-on-primary);
}
.btn-outline-primary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5);
}
.btn-danger {
    background-color: var(--danger);
    color: var(--text-on-dark);
}
.btn-danger:hover {
    background-color: var(--danger-dark);
}
.btn-danger:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.5);
}
.btn-danger-confirm {
    background-color: var(--danger);
    color: var(--text-on-dark);
}
.btn-danger-confirm:hover {
    background-color: var(--danger-dark);
}
.btn-danger-confirm:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.5);
}
.btn-secondary {
    background-color: var(--gray-200);
    color: var(--text-dark);
}
.btn-secondary:hover {
    background-color: var(--gray-300);
}
.btn-secondary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.5);
}
.btn-outline-secondary {
    border: 1px solid var(--gray-400);
    color: var(--text-body);
}
.btn-outline-secondary:hover {
    background-color: var(--gray-100);
}
.btn-outline-secondary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(203, 213, 225, 0.5);
}
.btn-outline-light-sm {
    background-color: var(--gray-700);
    color: var(--gray-200);
    font-size: 0.75rem;
    line-height: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}
.btn-outline-light-sm:hover {
    background-color: var(--gray-800);
}
.btn-outline-light-sm:focus {
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.5);
}
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--text-body);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.form-control:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: transparent;
    box-shadow: var(--shadow-outline);
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-body);
}

/* Card-like components */
.stat-card, .application-card {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    display: flex;
    flex-direction: column;
}
.stat-card:hover, .application-card:hover {
    transform: scale(1.01);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(134, 93, 54, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(134, 93, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(134, 93, 54, 0);
    }
}
.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* User tier badges */
.user-tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-xs);
    margin-top: 0.375rem;
}
.user-tier-badge.tier-premium {
    background-image: linear-gradient(to right, #facc15, #f59e0b);
    color: var(--white);
}
.user-tier-badge.tier-pro {
    background-color: var(--gray-400);
    color: var(--text-dark);
}
.user-tier-badge.tier-unlimited {
    background-color: var(--success);
    color: var(--white);
}


/* Custom dropdown menu styles. */
.custom-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text-body);
    box-shadow: var(--shadow-xs);
    min-height: 44px;
}
.custom-dropdown .dropdown-toggle:hover {
    border-color: var(--primary);
}
.custom-dropdown .dropdown-toggle:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-outline);
    outline: none;
}
.custom-dropdown .dropdown-menu {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    max-height: 15rem; /* 240px */
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(0.5rem);
    transition-property: transform, opacity;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-arrow {
    transition: transform 0.2s;
}
.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition-property: background-color;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text-body);
    border-radius: 0.5rem;
}
.checkbox-item:hover {
    background-color: var(--background-hover);
}
.selected-tag {
    background-color: var(--success-light);
    color: var(--success-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px; /* rounded-full */
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500; /* font-medium */
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-xs);
}
.remove-tag-icon {
    cursor: pointer;
    color: var(--success);
    transition-property: color;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
}
.remove-tag-icon:hover {
    color: var(--danger);
}
.tag-placeholder {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Overhaul of application and service cards for a modern, vertical look */
.services-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
}
.service-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.service-title-compact {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* New horizontal scroll container for services */
.services-grid-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.services-grid-container::-webkit-scrollbar {
    height: 12px;
}
.services-grid-container::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 10px;
}
.services-grid-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
.services-grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.service-card .service-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
@media (min-width: 768px) {
    .service-card .service-image {
        height: 150px;
    }
}
.service-card .p-4 {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.service-card .p-4 .font-bold {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--text-on-dark);
}
.service-card .p-4 .font-extrabold {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--secondary);
}


/* Application card styles */
.application-card {
    background-color: var(--background-card);
    padding: 1.25rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.application-card .card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.application-card .job-title-link {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}
.application-card .application-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-xs);
}
.application-card .card-body-info p {
    font-size: 0.875rem;
    color: var(--text-body);
    margin-bottom: 0.25rem;
}
.application-card .card-body-info p strong {
    font-weight: 600;
    color: var(--text-dark);
}
.application-card .action-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.application-card .action-buttons-group .btn {
    border-radius: 9999px;
    font-size: 0.875rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.status-pending, .status-applied, .status-shortlisted, .status-interviewing {
    background-color: var(--info-light);
    color: var(--info);
}
.status-accepted {
    background-color: var(--success-light);
    color: var(--success-dark);
}
.status-rejected {
    background-color: var(--danger-light);
    color: var(--danger);
}

.modal-content-lg {
    background-color: var(--background-card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* RTL Specific Styles (already in main.css, but a reminder here) */
[dir="rtl"] .modal-close-btn {
    left: 1rem;
    right: auto;
}
[dir="rtl"] .dropdown-arrow {
    transform: rotate(180deg);
}
[dir="rtl"] .custom-dropdown.active .dropdown-arrow {
    transform: rotate(0deg);
}

/* Add this at the end of the file or within a relevant section */
@media (max-width: 767px) {
    .footer-info,
    .footer-links {
        text-align: center;
        margin-bottom: 1.5rem; /* Adds space between blocks on mobile */
    }
    .footer-info .social-links {
        justify-content: center;
    }
}

.modal-content {
    background-color: var(--background-card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    max-width: 28rem;
    width: 100%;
}
