/* Admin Dashboard Styles */
.enhanced-admin-dashboard {
    margin: 20px 0;
}
.admin-tabs {
    display: flex;
    background: #f1f1f1;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
}
.admin-tab {
    padding: 15px 25px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
}
.admin-tab.active {
    background: white;
    border-bottom: 2px solid #0073aa;
}
.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
}
.tab-content.active {
    display: block;
}
.management-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 100px 120px;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.btn-primary { background: #0073aa; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn:hover { opacity: 0.8; }
.items-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.item-row {
    display: grid;
    grid-template-columns: 1fr 2fr 100px 200px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.item-row:last-child {
    border-bottom: none;
}
.item-row:nth-child(even) {
    background: #f9f9f9;
}
.item-header {
    background: #0073aa;
    color: white;
    font-weight: bold;
}
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.company-status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.company-status-table th,
.company-status-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
.company-status-table th {
    background: #f2f2f2;
}
.status-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}
.status-red { background-color: #ff4444; }
.status-green { background-color: #44ff44; }
.status-blue { background-color: #4444ff; }

/* Company Details Form Styles */
.enhanced-company-details-form {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.form-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}
.form-section h3:before {
    content: "⚙️";
    margin-right: 10px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.form-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.form-item label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #495057;
}
.status-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}
.status-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}
.submit-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.company-display {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}
.company-display h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}
.status-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Public Display Styles */
.enhanced-public-display {
    margin: 20px 0;
}
.header-section {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}
.header-section h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
}
.status-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.company-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.company-card h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}
.status-section {
    margin: 20px 0
}
    /* Continuing from previous styles */
    .status-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }
    .status-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 6px;
        font-size: 14px;
    }
    .last-updated {
        text-align: center;
        color: #666;
        font-size: 13px;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    .no-data-message {
        background: #fff3cd;
        color: #856404;
        padding: 30px;
        border-radius: 8px;
        text-align: center;
        margin-top: 20px;
    }
    .no-data-message h3 {
        margin: 0 0 10px 0;
        font-size: 20px;
    }

    /* Company Dashboard Styles */
    .enhanced-company-dashboard {
        max-width: 1000px;
        margin: 20px auto;
        padding: 20px;
    }
    .dashboard-header {
        background: linear-gradient(135deg, #0073aa, #005a87);
        color: white;
        padding: 30px;
        border-radius: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }
    .company-info h2 {
        margin: 0 0 10px 0;
        font-size: 24px;
    }
    .company-info p {
        margin: 5px 0;
        font-size: 16px;
    }
    .logout-btn {
        background: #dc3545;
        color: white;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s;
    }
    .logout-btn:hover {
        background: #c82333;
        transform: translateY(-1px);
    }
    .quick-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    .quick-link {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        border: 1px solid #e9ecef;
    }
    .quick-link h4 {
        margin: 0 0 10px 0;
        color: #0073aa;
    }
    .quick-link p {
        margin: 0;
    }
    .quick-link a {
        color: #0073aa;
        text-decoration: none;
        font-weight: bold;
    }
    .quick-link a:hover {
        text-decoration: underline;
    }

    /* Login and Registration Form Styles */
    .enhanced-company-login-form,
    .enhanced-company-registration-form {
        max-width: 500px;
        margin: 40px auto;
        padding: 30px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .form-title {
        text-align: center;
        color: #0073aa;
        margin-bottom: 20px;
        font-size: 24px;
    }
    .form-group {
        margin-bottom: 20px;
    }
    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 8px;
        color: #333;
    }
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 2px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        box-sizing: border-box;
    }
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #0073aa;
        outline: none;
        box-shadow: 0 0 5px rgba(0,115,170,0.3);
    }
    .required {
        color: #dc3545;
    }
    .checkbox-group {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .login-btn,
    .register-btn {
        width: 100%;
        background: linear-gradient(135deg, #0073aa, #005a87);
        color: white;
        padding: 15px;
        border: none;
        border-radius: 6px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s;
    }
    .login-btn:hover,
    .register-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .register-link,
    .login-link {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
    }
    .register-link a,
    .login-link a {
        color: #0073aa;
        text-decoration: none;
        font-weight: bold;
    }
    .register-link a:hover,
    .login-link a:hover {
        text-decoration: underline;
    }

    /* Debug System Styles */
    .debug-enhanced-system {
        max-width: 1000px;
        margin: 20px auto;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
    }
    .debug-section {
        margin-bottom: 30px;
        padding: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .debug-section h3 {
        margin-top: 0;
        color: #0073aa;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 10px;
    }
    .debug-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }
    .debug-table th,
    .debug-table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }
    .debug-table th {
        background: #f2f2f2;
        font-weight: bold;
    }
    .success { color: #28a745; }
    .error { color: #dc3545; }
    .warning { color: #856404; }