/* Import your main styles */
@import url('../../css/main.css');

/* AMS Specific Styles */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    border-radius: 15px;
}

.stats-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.employees-card {
    border-left: 4px solid #007bff;
}

.departments-card {
    border-left: 4px solid #28a745;
}

.today-card {
    border-left: 4px solid #17a2b8;
}

.qatar-time-card {
    border-left: 4px solid #ffc107;
}

.stats-badge {
    opacity: 0.8;
}

/* Quick Action Buttons */
.btn-outline-primary, 
.btn-outline-success, 
.btn-outline-info, 
.btn-outline-warning {
    border-width: 2px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.05);
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
    transform: scale(1.05);
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    color: white;
    transform: scale(1.05);
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    color: black;
    transform: scale(1.05);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Text Colors - Make sure they're visible */
.text-primary { color: #007bff !important; }
.text-success { color: #28a745 !important; }
.text-info { color: #17a2b8 !important; }
.text-warning { color: #ffc107 !important; }

.fw-bold { 
    color: #2d3748 !important; /* Dark gray for better visibility */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-card .col-md-4 {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .stats-card .col-4 {
        text-align: center !important;
    }
    
    .btn {
        padding: 0.8rem 0.5rem;
    }
}


/* Make datalist suggestions look better */
datalist {
    max-height: 200px;
    overflow-y: auto;
}

/* Make location input look like it has dropdown */
#modal_location, #edit_location {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Fix long text in DataTable - keeps table clean */
#employeesTable {
    table-layout: fixed;
    width: 100%;
}

#employeesTable td:nth-child(3) { /* Name column */
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#employeesTable td:nth-child(4) { /* Department column */
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Show full text on hover */
#employeesTable td:nth-child(3):hover,
#employeesTable td:nth-child(4):hover {
    white-space: normal;
    overflow: visible;
    position: relative;
    z-index: 100;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#modal_location, #edit_location {
    background-image: none !important;
}


/* Ultra-thin header */
thead tr th {
    background-color: #2c3e50 !important;
    color: white !important;
    border: none !important;
    padding: 4px 4px !important;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #4a5568 !important;
}

/* Very short header */
thead tr {
    height: 2px !important;
}
