
input[type="email"],
input[type="text"],
input[type="tel"],
textarea,
select {
   padding: 0.75rem !important;
   border: 1px solid #e5e7eb !important;
   border-radius: 0 !important;
   width: 100% !important;
}

.login-input {
   padding: 1rem !important;
   font-size: 1.1rem !important;
}

.input-field {
    padding: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    width: 100% !important;
    background: white !important;
}

.input-field:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: -2px !important;
}

/* Custom Date-Time Picker Styles */
.custom-datetime-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.custom-datetime-display {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    text-align: left;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.custom-datetime-calendar-btn {
    padding: 0.75rem 1rem;
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-datetime-calendar-btn:hover {
    background: #3b82f6;
    color: white;
}

.custom-datetime-clear {
    padding: 0.75rem;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-datetime-clear:hover {
    background: #fee2e2;
}

.custom-datetime-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-datetime-picker {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: min(95vw, 500px);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.datetime-step-container {
    padding: 1rem;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

/* Header Styles */
.datetime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.datetime-nav-btn,
.datetime-back-btn {
    padding: 0.75rem;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 3rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.datetime-nav-btn:active,
.datetime-back-btn:active {
    transform: scale(0.95);
}

.datetime-nav-btn:hover,
.datetime-back-btn:hover {
    background: #e5e7eb;
}

.datetime-month-label,
.datetime-date-label {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.25rem;
}

/* Calendar Grid */
.datetime-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    width: 100%;
}

.datetime-weekday {
    text-align: center;
    padding: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: #6b7280;
}

.datetime-day {
    aspect-ratio: 1;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s;
    min-height: 2.5rem;
    padding: 0.25rem;
    width: 100%;
    border-radius: 0.25rem;
    font-weight: 500;
}

.datetime-day:hover:not(.datetime-day-empty) {
    background: #eff6ff;
    border-color: #3b82f6;
}

.datetime-day:active:not(.datetime-day-empty) {
    transform: scale(0.95);
}

.datetime-day-empty {
    border: none;
    cursor: default;
}

.datetime-day-today {
    font-weight: 700;
    color: #3b82f6;
}

.datetime-day-selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.datetime-day-selected:hover {
    background: #2563eb;
}

/* Time Picker */
.datetime-time-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.datetime-time-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.datetime-time-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.datetime-time-btn {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    min-height: 3rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.datetime-time-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.datetime-time-btn:active {
    transform: scale(0.97);
}

.datetime-time-selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.datetime-time-selected:hover {
    background: #2563eb;
}

/* Confirm Button */
.datetime-confirm-btn {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background-color 0.2s;
}

.datetime-confirm-btn:hover {
    background: #2563eb;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .datetime-step-container {
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .custom-datetime-picker {
        max-width: 98vw;
        margin: 0 auto;
    }

    .datetime-month-label,
    .datetime-date-label {
        font-size: 0.875rem;
        padding: 0 0.125rem;
    }

    .datetime-nav-btn,
    .datetime-back-btn {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.5rem;
    }

    .datetime-weekday {
        font-size: 0.65rem;
        padding: 0.125rem;
    }

    .datetime-day {
        min-height: 2rem;
        font-size: 0.75rem;
        padding: 0.125rem;
    }

    .datetime-time-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.375rem;
    }

    .datetime-time-btn {
        min-height: 2.25rem;
        padding: 0.375rem;
        font-size: 0.875rem;
    }

    .datetime-time-label {
        font-size: 0.875rem;
    }

    .datetime-confirm-btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .datetime-step-container {
        padding: 0.5rem;
    }

    .datetime-month-label,
    .datetime-date-label {
        font-size: 0.75rem;
    }

    .datetime-weekday {
        font-size: 0.625rem;
    }

    .datetime-day {
        min-height: 1.75rem;
        font-size: 0.7rem;
    }

    .datetime-calendar {
        gap: 0.125rem;
    }
}

/* Mobile Kanban Styles */
.stage-tab {
    padding: 1rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-weight: 500;
    position: relative;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.stage-tab:active {
    transform: scale(0.98);
}

.stage-tab.active {
    border-color: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

.stage-tab-count {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.mobile-prospect-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    position: relative;
}

.mobile-prospect-card:active {
    transform: scale(0.99);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mobile-edit-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-edit-btn {
        display: flex;
        width: 100%;
        background-color: #3b82f6;
        color: white;
        padding: 0.75rem;
        border-radius: 0.375rem;
        margin-bottom: 0.75rem;
        align-items: center;
        justify-content: center;
        font-size: 1.125rem;
        transition: background-color 0.15s;
        min-height: 44px;
    }

    .mobile-edit-btn:hover {
        background-color: #2563eb;
    }

    .mobile-edit-btn:active {
        background-color: #1d4ed8;
        transform: scale(0.98);
    }

    .desktop-edit-icon {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-edit-btn {
        display: none;
    }

    .desktop-action-icons {
        display: flex;
    }

    .desktop-edit-icon {
        display: flex;
    }
}

.mobile-action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mobile-action-btn {
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    transition: all 0.15s;
}

.mobile-action-btn:active {
    transform: scale(0.95);
}

.mobile-action-btn i {
    font-size: 1.125rem;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    button, a, .cursor-pointer {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Swipe indicator */
.swipe-indicator {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 40;
}

.swipe-indicator.show {
    opacity: 1;
}

/* Pull to refresh indicator */
.pull-indicator {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(0) rotate(0deg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 50;
    pointer-events: none;
}

.pull-indicator i {
    font-size: 1.25rem;
}

/* Mobile Header Fix */
@media (max-width: 768px) {
    /* Ensure mobile header title is on its own line */
    .mb-6.md\:mb-8 > div > h1 {
        display: block !important;
        width: 100% !important;
    }

    /* Ensure proper spacing for mobile header */
    .mb-6.md\:mb-8 > div.flex.flex-col {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Activity Filter Matrix Responsive */
@media (max-width: 768px) {
    .activity-filter {
        min-width: 3rem !important;
        width: 100% !important;
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
    }

    .bg-gray-50.p-4.rounded-lg .p-2.rounded-full {
        padding: 0.5rem !important;
    }

    .bg-gray-50.p-4.rounded-lg .p-2.rounded-full i {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 640px) {
    .activity-filter {
        min-width: 2.5rem !important;
        padding: 0.375rem 0.125rem !important;
        font-size: 0.7rem !important;
    }

    .bg-gray-50.p-4.rounded-lg {
        padding: 0.75rem !important;
    }

    .bg-gray-50.p-4.rounded-lg .gap-2 {
        gap: 0.375rem !important;
    }
}

/* Analytics/Graphs Page Mobile Styles */
@media (max-width: 768px) {
    /* Leaderboard card layout on mobile */
    #leaderboardContainer > div {
        display: flex !important;
        flex-direction: column !important;
        background: #f9fafb;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
    }

    #leaderboardContainer .flex.items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
        width: 100%;
    }

    #leaderboardContainer .flex.items-center > * {
        width: 100%;
    }

    /* Leaderboard text sizes */
    #leaderboardContainer {
        font-size: 0.875rem;
    }

    #leaderboardContainer .text-sm {
        font-size: 0.875rem !important;
    }

    #leaderboardContainer .font-semibold {
        font-size: 1rem !important;
        margin-bottom: 0.25rem;
    }

    /* Reduce padding on cards */
    .bg-white.p-4.rounded-lg.shadow {
        padding: 1rem !important;
    }

    /* First contact metric */
    #firstContactMetric {
        font-size: 2rem !important;
    }

    /* Activity summary table */
    #activitySummary table {
        font-size: 0.75rem;
    }

    #activitySummary th,
    #activitySummary td {
        padding: 0.5rem 0.25rem !important;
    }

    /* Ensure charts fill their containers */
    #pipelineChart,
    #activityChart,
    #conversionChart {
        height: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    /* Further reduce text on small screens */
    #leaderboardContainer {
        font-size: 0.75rem;
    }

    #leaderboardContainer .font-semibold {
        font-size: 0.875rem !important;
    }

    #firstContactMetric {
        font-size: 1.5rem !important;
    }

    .text-xl.font-bold.mb-4 {
        font-size: 1.125rem !important;
    }

    #activitySummary table {
        font-size: 0.7rem;
    }
}