* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#pharmacy-workbook-container {
    font-family: 'Fira Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #dc143c;
    padding-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc143c;
    margin-bottom: 15px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    font-style: italic;
}

.nav-tabs {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.nav-tab.active {
    background: #dc143c;
    color: white;
}

.nav-tab:hover:not(.active) {
    background: #e0e0e0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    margin-bottom: 40px;
    background: #ffffff;
    border-left: 4px solid #dc143c;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 0 8px 8px 0;
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section h2::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #dc143c;
    border-radius: 50%;
    margin-right: 12px;
}

.calculator {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #dc143c;
}

.calculator h3 {
    color: #dc143c;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: #dc143c;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    background: #dc143c;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn:hover {
    background: #a01030;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #666;
}

.btn-secondary:hover {
    background: #555;
}

.result {
    background: #000;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.result.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.result h4 {
    color: #dc143c;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.metric:last-child {
    border-bottom: none;
}

.metric-value {
    font-weight: 600;
    color: #dc143c;
}

.tracker-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tracker-table th {
    background: #dc143c;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.tracker-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.tracker-table tr:hover {
    background: #f8f8f8;
}

.tracker-table input {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
}

/* Pharmacy Job Board Profile Cards */
.pharmacy-profile-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    min-height: 200px;
}

.pharmacy-profile-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.pharmacy-profile-card .job-card-header {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    text-align: center;
}

.pharmacy-profile-card .job-type-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pharmacy-profile-card .profile-availability {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pharmacy-profile-card .job-title {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.pharmacy-profile-card .job-meta {
    padding: 0 20px 15px;
}

.pharmacy-profile-card .job-meta-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.pharmacy-profile-card .meta-label {
    font-weight: 600;
    color: #7f8c8d;
    min-width: 80px;
    font-size: 13px;
}

.pharmacy-profile-card .meta-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.pharmacy-profile-card .job-excerpt {
    padding: 0 20px 15px;
    color: #5a6c7d;
    line-height: 1.5;
    font-size: 14px;
}

.pharmacy-profile-card .contact-info {
    padding: 15px 20px 10px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.pharmacy-profile-card .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.pharmacy-profile-card .contact-label {
    font-weight: 600;
    color: #6c757d;
    min-width: 70px;
    font-size: 12px;
}

.pharmacy-profile-card .contact-value {
    color: #495057;
    font-size: 13px;
    font-weight: 500;
}

.pharmacy-profile-card .contact-actions {
    padding: 15px 20px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pharmacy-profile-card .pharmacy-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.pharmacy-profile-card .pharmacy-btn-primary {
    background: #dc143c;
    color: white;
}

.pharmacy-profile-card .pharmacy-btn-primary:hover {
    background: #8b0000;
    text-decoration: none;
}

.pharmacy-profile-card .pharmacy-btn-outline {
    background: transparent;
    color: #dc143c;
    border: 1px solid #dc143c;
}

.pharmacy-profile-card .pharmacy-btn-outline:hover {
    background: #dc143c;
    color: white;
    text-decoration: none;
}

.pharmacy-jobs-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.pharmacy-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.pharmacy-filter-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.pharmacy-select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.pharmacy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.pharmacy-btn-primary {
    background: #dc143c;
    color: white;
}

.pharmacy-btn-primary:hover {
    background: #8b0000;
}

.pharmacy-btn-outline {
    background: transparent;
    color: #333333;
    border: 1px solid #333333;
}

.pharmacy-btn-outline:hover {
    background: #333333;
    color: white;
}

/* Mobile responsive for pharmacy cards */
@media (max-width: 768px) {
    .pharmacy-jobs-grid {
        display: block;
    }
    
    .pharmacy-jobs-grid .pharmacy-profile-card {
        margin-bottom: 15px;
    }
    
    .pharmacy-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pharmacy-select {
        min-width: auto;
    }
    
    .pharmacy-profile-card .contact-actions {
        flex-direction: column;
    }
    
    .pharmacy-profile-card .pharmacy-btn {
        text-align: center;
    }
    
    .pharmacy-profile-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pharmacy-profile-card-main {
    flex: 1;
    padding: 20px;
}

.pharmacy-profile-card .contact-info {
    padding: 15px 20px 10px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.pharmacy-profile-card .contact-actions {
    padding: 15px 20px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #f8f9fa;
}
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-good { 
    background: #28a745; 
}

.status-warning { 
    background: #ffc107; 
}

.status-danger { 
    background: #dc143c; 
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc143c 0%, #a01030 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.insight-box {
    background: linear-gradient(135deg, #dc143c 0%, #a01030 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.insight-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #dc143c;
}

.comparison-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        border-radius: 0;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 20px;
    }
    
    .calculator {
        padding: 20px;
    }
    
    .tracker-table {
        font-size: 0.9rem;
    }
    
    .tracker-table th,
    .tracker-table td {
        padding: 8px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .calculator h3 {
        font-size: 1.2rem;
    }
    
    .nav-tab {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .tracker-table {
        font-size: 0.8rem;
    }
    
    .tracker-table th,
    .tracker-table td {
        padding: 6px;
    }
    
    .tracker-table input {
        padding: 6px;
        font-size: 0.8rem;
    }
}