@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        font-family: 'Inter', sans-serif;
    }
}

.container{
    font-size: 18px;
   
}
/* Page styling */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Navigation styling */
.nav-item.active {
    color: var(--color-primary-500);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary-500);
    border-radius: 50%;
}

.sub-nav-item.active {
    border-bottom: 2px solid var(--color-primary-500);
    color: var(--color-primary-500);
    font-weight: 600;
}

/* Progress bar styling */
.progress-bar {
    height: 8px;
    background-color: var(--color-gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-400));
    border-radius: 10px;
}

/* Job card styling */
.job-card {
    border-left: 4px solid;
    transition: all 0.2s;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Stat badge styling */
.stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Performance metric styling */
.performance-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-secondary-100);
}

.performance-metric:last-child {
    border-bottom: none;
}

/* Trend indicator styling */
.trend-indicator {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

/* Map styling */
#map-view {
    height: 300px;
    background-color: var(--color-secondary-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-600);
}

.route-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Card styling */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

#hyderabad-map {
    height: 400px;
    border-radius: 12px;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.route-info {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Phone input styling */
.phone-input {
    display: flex;
    align-items: center;
}

.phone-prefix {
    background: var(--color-secondary-100);
    padding: 16px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 500;
}

.phone-input input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--color-secondary-600);
    text-align: center;
    margin-bottom: 2rem;
}

.otp-input {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.otp-input input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-gray-300);
}

.task-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.task-item:hover {
    background-color: var(--color-secondary-100);
}

.task-item.completed span {
    text-decoration: line-through;
    color: var(--color-secondary-400);
}

.photo-upload-card {
    border: 2px dashed var(--color-gray-300);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.photo-upload-card:hover {
    border-color: var(--color-primary-400);
    background-color: var(--color-secondary-100);
}

.photo-upload-card i {
    font-size: 2.5rem;
    color: var(--color-secondary-400);
}

.photo-upload-card p {
    margin-top: 1rem;
    color: var(--color-secondary-600);
    font-weight: 500;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.photo-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview button {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-secondary-100);
    cursor: pointer;
}

.collapsible-header .fa-chevron-down {
    transition: transform 0.3s;
}

.collapsible-header.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}